Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Linux Version: Ubuntu 18.04.3 LTS
Install Rails:
sudo apt install curl
curl -sL | sudo -E bash -
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
cd $HOME
git clone ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
## Note, installing 2.6.5 since that is what the application on github was developed with
rbenv install 2.6.5
rbenv global 2.6.5
# Verification
ruby -v
# ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
gem install bundler
## This version is to be compatible with the codebase
gem install rails -v
rbenv rehash
# Verification
rails -v
# Rails
## Install Postgres
sudo apt install libpq-dev
sudo apt install postgresql-10
# Create user 'user'
sudo -u postgres createuser user -s
## Ventilator Specific Install Scripts
# Go into the directory you want to install the repo
git clone
cd ventilator-remote-monitoring
bundle install
yarn install --check-files
# Create the rails database
rails db:create
rails db:migrate
# Start the development server, (note the --binding will make it world accessible)
rails s --binding=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment