Skip to content

Instantly share code, notes, and snippets.

@ivaninkv
Created March 21, 2020 05:57
Show Gist options
  • Save ivaninkv/804185b5bc8aa47f2d1ba355a5d445bf to your computer and use it in GitHub Desktop.
Save ivaninkv/804185b5bc8aa47f2d1ba355a5d445bf to your computer and use it in GitHub Desktop.
#! /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 D68FA50FEA312927
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
ps aux | grep puma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment