Skip to content

Instantly share code, notes, and snippets.

@karandocs
Created August 24, 2020 07:13
Show Gist options
  • Save karandocs/93110f191179e040f3eabb11e16a7218 to your computer and use it in GitHub Desktop.
Save karandocs/93110f191179e040f3eabb11e16a7218 to your computer and use it in GitHub Desktop.

Digital alerts platform

Production

Testing

Prerequisites

The setups steps expect following tools installed on the system.

Install

Clone the repository

git clone git@github.com:CrunchworksIn/dpa.git
cd dpa

Check your Ruby version

ruby -v

The ouput should start with something like ruby 2.7.1

If not, install the right ruby version using rbenv (it could take a while):

rbenv install 2.7.1

Install dependencies

Using Bundler and Yarn:

bundle && yarn

Set environment variables

Using Rails credentials:

contact the developer: karan@crunchworks.in (sensitive data).

Initialize the database

rails db:create db:migrate

Serve

foreman start -f Procfile.dev -p 3000

Deploy

Using cloud66: For CLI commands setup Tollbelt:

cx stacks list
cx ssh -s "DAP" -e staging web
cx ssh -s "DAP" -e production web

Go to the Cloud66 Dashboard or use Tollbelt CLI:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment