- Vietnam It BLOg
% git clone https://github.com/framgia/ngheroi.git
% curl -s http://getcomposer.org/installer | php
% composer update
% php artisan env
local
app/config/local/database.php
Create database Create user and grant permission on database
% php artisan migrate
% php artisan db:seed
% php artisan serve
http://localhost:8000
#Deploy to staging server
- Connect to server
- change working directory to
/var/www/ngheroi
- Change Application stage to Maintain Mode
$php artisan down
- Pull new code from remote
$git pull origin develop
- Run migrate (if need)
$php artisan migrate
- Run composer update (if need)
$php composer update
- CHMOD folder for upload file
-
/public/uploads/
-
/public/css/
-
/public/img/categories/
-Change Application tage
$php artisan up
#Deploy to product server
- Connect to server
- Change to user deploy
$sudo su - deploy
- change working directory to
/usr/share/nginx/viblo/
- Change Application stage to Maintain Mode
$php artisan down
- Pull new code from remote
$git pull origin develop
- Run migrate (if need)
$php artisan migrate
- Run composer update (if need)
$php composer update
- CHMOD folder for upload file
-
/public/uploads/
-
/public/css/
-
/public/img/categories/
-Change Application tage
$php artisan up
apacheが起動されていますが、vibloはnginxを利用するので
vibloにアクセスできませんでした。
apacheを停止してからnginxを再起動したことによりシステム復活しました