8000 GitHub - tanphatsolution/itshare
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tanphatsolution/itshare

Repository files navigation

Viblo

About

  • Vietnam It BLOg

Set up

Checkout repository

% git clone https://github.com/framgia/ngheroi.git

Install composer and update

% curl -s http://getcomposer.org/installer | php
% composer update

Check environment as "local"

% php artisan env
local

Local database config file

app/config/local/database.php

Create database

Create database Create user and grant permission on database

% php artisan migrate
% php artisan db:seed

Run server on local

% php artisan serve
http://localhost:8000

Or create a virtual host in Apache (for how to do, Google it yourself)

#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を再起動したことによりシステム復活しました

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0