Last active
March 31, 2016 09:38
-
-
Save ASnow/79bb21f2a1435e2ff3e3 to your computer and use it in GitHub Desktop.
Deploy env setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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