-
-
Notifications
You must be signed in to change notification settings - Fork 53
Local Dev on Windows (Vagrant)
he3als edited this page Nov 22, 2024
·
3 revisions
- NodeJS (latest LTS version)
- Vagrant
- Git
Pyrodactyl is the world's first Pterodactyl panel that can be developed and run locally (with Wings) on Windows machines through Vagrant. Verify you have met the prerequisites above, then follow the steps below.
- Clone the Pyrodactyl panel repository
- Install dependencies:
npm i
- Build the application:
npm run ship
- This caches build results and uploads sourcemaps to Sentry
- Subsequent builds are much faster if code hasn't changed
- Run
vagrant up
. This will setup Pterodactyl Wings and the necessary services in order to run Pyrodactyl's databases, services, and app (~15 mins) - Login using the credentials shown in your console
⚠️ Important: Always uselocalhost:8000
, not127.0.0.1
, to avoid CORS issues! - Visit http://localhost:8000/admin to create your first server
- Running
npm run dev
serves a development build at localhost:3000 with Hot Module Replacement (HMR) - For production preview, stop the dev server, run
npm run ship
, and access http://localhost:3000
- If localhost:3000 hangs indefinitely, check for port conflicts with other applications (e.g., Steam using port 8080)
- After resolving port conflicts, run
vagrant reload
to reset port mappings
- If encountering
Vagrant was unable to mount VirtualBox shared folders
, installvbguest
plugin:vagrant plugin install vagrant-vbguest
- For existing installations, update with:
vagrant plugin update vagrant-vbguest
- Set up Remote Caching via Turbo for faster builds
- Cached results allow production server builds to complete in milliseconds
- Avoid Hyper-V as your virtualization layer
- Recommended: VMWare Workstation or VirtualBox
- If prompted for password with Hyper-V, use your Windows credentials