Skip to content

Instantly share code, notes, and snippets.

@KlimDos
Created October 5, 2018 16:03
Show Gist options
  • Save KlimDos/838709ca78874fb98d4958f6beda504e to your computer and use it in GitHub Desktop.
Save KlimDos/838709ca78874fb98d4958f6beda504e to your computer and use it in GitHub Desktop.
#!/bin/bash
#####################################################################
# the script is responsible to install MongoDB into the Ubuntu instance
# ROOT access required
#####################################################################
# create a folder for application
mkdir ~/app
# clone repository
git clone https://github.com/Artemmkin/reddit.git ~/app/
# browse to app folder
cd ~/app
# install app dependencies
bundle install
# activate rvm for current bash session
source ~/.rvm/scripts/rvm
# start puma web server d means -
puma -d
# check if the web-server is up and running
ps aux | grep puma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment