项目作者: Davigl

项目描述 :
:camera: cloudinary storage + carrierwave.
高级语言: Ruby
项目地址: git://github.com/Davigl/uploader-image.git
创建时间: 2018-11-13T03:45:24Z
项目社区:https://github.com/Davigl/uploader-image

开源协议:

下载


Uploader Image

Simple example of how to storage your images in cloudinary storage and use it.

Clone the repository

  1. git clone https://github.com/Davigl/uploader-image.git
  2. cd uploader-image

Check your Ruby version

  1. 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):

  1. rbenv install 2.5.1

Install dependencies

  1. `bundle install`

Set environment variables

Using Figaro:

Set config/application.yml with your cloudinary keys.

Initialize the database

  1. rails db:create db:migrate

Add heroku remotes

Using Heroku CLI:

  1. heroku git:remote -a project
  2. heroku git:remote --remote heroku-staging -a project-staging

Server

  1. rails s

Deploy

Push to Heroku staging remote:

  1. git push heroku-staging

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

  1. heroku pipelines:promote -a project-staging

Push to Heroku production remote:

  1. git push heroku