Skip to content

seyedrazavi/phlinks

Repository files navigation

phlinks

phlinks.herokuapp.com

Install

Clone the repository

git clone git@github.com:seyedrazavi/phlinks.git
cd project

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.6

Install dependencies

Using Bundler and Yarn:

bundle && yarn

Set environment variables

Using Figaro:

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

Initialize the database

rails db:create db:migrate
rails fetch

Add heroku remotes

Using Heroku CLI:

heroku git:remote -a phlinks
heroku git:remote --remote heroku-staging -a phlinks-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 phlinks-staging

Directly to production (not recommended)

Push to Heroku production remote:

git push heroku