Skip to content

Instantly share code, notes, and snippets.

@redbull05689
Created October 21, 2018 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redbull05689/bb998f1b841c8a37bf0dc5eb86cf61e0 to your computer and use it in GitHub Desktop.
Save redbull05689/bb998f1b841c8a37bf0dc5eb86cf61e0 to your computer and use it in GitHub Desktop.
OTUS DEVOPS HW4 startupscript
#!/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