jumpgate / server
服务器命令
1.2
2018-06-18 06:10 UTC
Requires
- symfony/console: ^3.4|^4.0
- symfony/filesystem: ^3.4|^4.0
This package is auto-updated.
Last update: 2024-08-27 20:29:35 UTC
README
此包包含为管理Nuka Code服务器创建的有用命令。
安装
运行以下composer命令以全局安装Jumpgate命令。
composer global require jumpgate/server
请确保将~/.composer/vendor/bin
目录添加到您的PATH中,以便系统可以找到laravel可执行文件。
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
新建站点命令
新命令将在~/nginx/sites-avaiable
中创建一个Nginx配置文件,并将其符号链接到启用站点目录。完成后,它将在~/sites
中为域名创建一个目录。然后,它将使用sudo service nginx reload
重新启动Nginx。
为了获得最佳效果,请确保通过您的sudo配置允许执行service nginx reload
命令。
server new-site sub.domain.com