JorgePadilla / red-dragon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Red Dragon

red-dragon

Install

Clone the repository

git clone git@github.com:JorgePadilla/red-dragon.git
cd red-dragon

Check your Ruby version

ruby -v

The ouput should start with something like ruby 2.6.3

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

rbenv install 2.6.3

Install dependencies

Using Bundler and Yarn:

bundle && yarn

Set environment variables

Using Figaro:

See config/application.yml.sample and contact the developer: jp@gmail.com (sensitive data).

Initialize the database

rails db:create db:migrate db:seed

Add heroku remotes

Using Heroku CLI:

heroku git:remote -a project
heroku git:remote --remote heroku-staging -a project-staging

Serve

rails s

Deploy

With Heroku pipeline (recommended)

Push to Heroku staging remote:

git push heroku-staging

Go to the Heroku Dashboard and promote the app to production or use Heroku CLI:

heroku pipelines:promote -a project-staging

Directly to production (not recommended)

Push to Heroku production remote:

git push heroku

About


Languages

Language:Ruby 73.8%Language:HTML 19.2%Language:JavaScript 5.8%Language:CSS 0.8%Language:SCSS 0.4%