Created
October 21, 2018 23:38
-
-
Save redbull05689/bb998f1b841c8a37bf0dc5eb86cf61e0 to your computer and use it in GitHub Desktop.
OTUS DEVOPS HW4 startupscript
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 | |
sudo apt update ; | |
sudo apt install -y ruby-full ruby-bundler build-essential; | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927; | |
sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list'; | |
sudo apt update ; | |
sudo apt install -y mongodb-org ; | |
sudo systemctl start mongod ; | |
sudo systemctl enable mongod ; | |
cd ~ ; | |
git clone -b monolith https://github.com/express42/reddit.git; | |
cd reddit && bundle install; | |
puma -d; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment