webstack
webstack
克隆代码:
git clone https://github.com/hui-ho/WebStack-Laravel.git安装依赖:
composer install复制配置:
cp .env.example .env编辑配置:
DB_DATABASE=database
DB_USERNAME=username
DB_PASSWORD=password生成 KEY:
php artisan key:generate迁移数据:
php artisan migrate:refresh --seed本地测试:
php artisan servesupervisord 配置进程
[program:webstack]
directory = /data/wwwroot/webstack/public
command = /opt/remi/php71/root/usr/bin/php -S 0.0.0.0:8081 /data/wwwroot/webstack/server.php
environment =
user = root
stopsignal = INT
autostart = true
autorestart = true
startsecs = 1
stderr_logfile = /var/log/supervisor/webstack.err.log
stdout_logfile = /var/log/supervisor/webstack.out.log最后更新于
这有帮助吗?