Created
October 5, 2018 16:03
-
-
Save KlimDos/838709ca78874fb98d4958f6beda504e 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
#!/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