Skip to content

Instantly share code, notes, and snippets.

@fabidick22
Last active January 14, 2022 20:54
Show Gist options
  • Save fabidick22/7eff78f5a2cafa06e1f83b8e54038e3c to your computer and use it in GitHub Desktop.
Save fabidick22/7eff78f5a2cafa06e1f83b8e54038e3c to your computer and use it in GitHub Desktop.
mkdir /home/ubuntu/sobreplanos
aws s3 cp s3://sobreplanos-boilerplate/artifacts/sobreplanos.zip /home/ubuntu/sobreplanos.zip
cd /home/ubuntu/
unzip sobreplanos.zip -d sobreplanos
rm -rf sobreplanos.zip
cd sobreplanos
chown -R ubuntu:ubuntu /home/ubuntu
export PATH="/usr/share/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0:/usr/share/rvm/gems/ruby-2.6.8@sobreplanos:/usr/share/rvm/gems/ruby-2.6.8@global/bin:/usr/share/rvm/rubies/ruby-2.6.8/bin:/usr/share/rvm/bin:/home/ubuntu/.nvm/versions/node/v14.15.5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/sobreplanos/bin:$PATH"
echo "##### INSTALL"
RAILS_ENV=production bundle install
echo "##### INSTALL END"
echo "USER: $(whoami)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment