sudo apt-get install -y git build-essential make libssl-dev libreadline-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars
# Modify your ~/.zshrc file instead of ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"\neval "$(rbenv init -)"' >> ~/.bash_profile
rbenv install -l
CONFIGURE_OPTS="--disable-install-doc" rbenv install 2.3.1
rbenv local 2.3.1
gem install bundler
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone https://github.com/itpkg/reading.git
cd reading
bundler install
npm install
psql -U postgres
CREATE DATABASE db-name WITH ENCODING=UTF8;
CREATE USER user-name WITH PASSWORD 'change-me';
GRANT ALL PRIVILEGES ON DATABASE db-name TO user-name;
- .rbenv-vars
- config/database.yml
- config/sidekiq.yml
- config/deploy/production.rb
cap production deploy
cap production puma:config
###upload nginx config file cap production puma:nginx_config
rails g model Aaa --no-test-framework