Simple example of how to storage your images in cloudinary storage and use it.
git clone https://github.com/Davigl/uploader-image.git
cd uploader-image
ruby -v
The ouput should start with something like ruby 2.5.1
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 2.5.1
`bundle install`
Using Figaro:
Set config/application.yml with your cloudinary keys.
rails db:create db:migrate
Using Heroku CLI:
heroku git:remote -a project
heroku git:remote --remote heroku-staging -a project-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 project-staging
Push to Heroku production remote:
git push heroku