Skip to content

Instantly share code, notes, and snippets.

@ASnow
Last active March 31, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ASnow/79bb21f2a1435e2ff3e3 to your computer and use it in GitHub Desktop.
Save ASnow/79bb21f2a1435e2ff3e3 to your computer and use it in GitHub Desktop.
Deploy env setup
# Deploy host
mkdir deploy
cd deploy
git clone git@github.com:uniwebru/uniweb-portal.git .
rvm use 2.2.1@deploy --create --rvmrc
git checkout feature/capistrano
bundle install --without test development app
# Target host
mkdir -p /opt/capistrano/uniweb/shared/config/
rvm use ruby-2.2.1@unp --create
# Change nginx config
# use passenger-config --ruby-command for ruby
cp config/*.yml /opt/capistrano/uniweb/shared/config/
# check autoprefixer, scss-lint
cp config/config/initializers/configus.rb /opt/capistrano/uniweb/shared/config/initializers/configus.rb
ln -s /opt/uniweb-portal/public/system /opt/capistrano/uniweb/shared/public/system
ln -s /opt/uniweb-portal/public/uploads /opt/capistrano/uniweb/shared/public/uploads
ln -s /opt/uniweb-portal/documents /opt/capistrano/uniweb/shared/documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment