Welcome to Server Commands
This package contains helpful commands created for managing the Nuka Code server., (*1)
Install
Run the following composer command to install Jumpgate Commands globally., (*2)
composer global require jumpgate/server
Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravel executable can be located by your system., (*3)
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
New Site Command
The new command will create an Nginx config in ~/nginx/sites-avaiable and then sym link it to the sites enable directory.
After this is done it will create a directory for the domain in ~/sites. Once this is complete it will restart Nginx using sudo service nginx reload., (*4)
For best results make sure to allow the command service nginx reload via your sudo configuration., (*5)
server new-site sub.domain.com