Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lakiw/9309e675d7a47c73f0591682a8d39e58 to your computer and use it in GitHub Desktop.
Linux Version: Ubuntu 18.04.3 LTS
Install Rails:
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ 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 https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.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 6.0.2.1
rbenv rehash
# Verification
rails -v
# Rails 6.0.2.1
## 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 https://github.com/Open-Ventilator-Remote-Monitoring/ventilator-remote-monitoring.git
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=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment