git clone git@github.com:seyedrazavi/phlinks.git
cd project
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
bundle && yarn
Using Figaro:
See config/application.yml.sample and contact the developer: me@srazavi.com (sensitive data).
rails db:create db:migrate
rails fetch
Using Heroku CLI:
heroku git:remote -a phlinks
heroku git:remote --remote heroku-staging -a phlinks-staging
rails s
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
Push to Heroku production remote:
git push heroku