Last active
August 29, 2015 14:27
-
-
Save jayschab/c3584317a96784340a6d to your computer and use it in GitHub Desktop.
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
# Criar usuario para instalar | |
sudo adduser deployer | |
echo "deployer ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
su deployer | |
cd | |
# Atualizar YUM e adicionar EPEL repo | |
sudo yum -y update | |
sudo yum install -y epel-release | |
# Instalar bibliotecas | |
sudo yum groupinstall -y 'development tools' | |
sudo yum install -y gcc-c++ patch \ | |
readline readline-devel zlib zlib-devel \ | |
libyaml-devel libffi-devel openssl-devel \ | |
make automake bash curl sqlite-devel ImageMagick | |
sudo yum install -y nodejs --enablerepo=epel | |
sudo yum install -y git pygpgme | |
# Instalar RVM e Ruby | |
\curl -L https://get.rvm.io | bash | |
rvm install 2.2.2 | |
rvm --default use 2.2.2 | |
gem update --system --no-ri --no-rdoc | |
# Instalar bundler | |
gem install bundler --no-ri --no-rdoc | |
#gem install rails -v 3.2.22 --no-ri --no-rdoc | |
# Install Passenger Nginx | |
sudo curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo | |
sudo yum install -y nginx passenger | |
sudo yum install passenger-devel-5.0.15 -y | |
passenger-config build-native-support | |
# Criar app dir | |
sudo mkdir /var/www | |
cd /var/www | |
#download code to /var/www/morumbi | |
bundle install | |
#RAILS_ENV=production rake db:migrate | |
#RAILS_ENV=production rake db:seed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment