-
-
Notifications
You must be signed in to change notification settings - Fork 41
Local Dev on Linux (Vagrant)
Naterfute edited this page Dec 27, 2024
·
4 revisions
- NodeJS (Latest LTS version)
- Git
- Vagrant
libvirtd
nfs-utils
-
Fedora:
sudo dnf install nfs-utils
Ubuntu/Debian:
sudo apt-get install nfs-kernel-server
-
Enable and start the NFS server:
# Start the service sudo systemctl start nfs-server # Enable on boot sudo systemctl enable nfs-server
Follow these steps to set up your development environment:
- Clone the Pyrodactyl panel repository
- Install dependencies:
npm i
- Build the project:
npm run ship
- This caches build results and uploads sourcemaps to Sentry
- Subsequent builds without code changes are nearly instant
- If Using libvirt
vagrant plugin install vagrant-libvirt
Important
Files must be in /var/www/pterodactyl
for vagrant up
to work, unless specified otherwise in Vagrantfile
- Run
vagrant up
to initialize the environment- Sets up wings and required services
- Configures databases and applications
- Takes approximately 15 minutes
- Access Pyrodactyl at
localhost:3000
and login with the console-provided credentials⚠️ Important: Uselocalhost
, not127.0.0.1
, to avoid CORS issues
-
VM Configuration: When using alternatives to
libvirtd
, modify the Vagrantfile to allocate more than the default 512MB RAM -
NFS Mount Error: If you encounter a "Connection refused" error during first
vagrant up
, simply retry the command -
Permission Issues: Run commands with sudo:
sudo vagrant up