Skip to content

Latest commit

 

History

History
155 lines (99 loc) · 2.19 KB

README_RAILS.md

File metadata and controls

155 lines (99 loc) · 2.19 KB

README EXAMPLE FOR RAILS

Readme for NAME_PROJECT

Ruby on Rails version

Ruby version

Node version

NPM version

Yarn version

Setup project

1. Dependency

Mac OS
  • Install RMagick

    $ brew install imagemagick
  • Install Redis

    $ brew install redis
  • Install Yarn

    $ brew install yarn

    Chack version

    $ yarn --version
    
Ubuntu

2. Project

$ git clone project_url_on_git
$ cd project_folder
$ gem install bundler && bundle install
$ yarn install
$ rails db:create
$ rails db:migrate

Run project

that start rails local server

$ rails s 

or

$ raisl s -b your_ip

3. Testing

4. Deploy

Deploy production

  • If you add key in application.yml.

    $ bundle exec cap production setup
$ cap production deploy

Deploy staging

  • If you add key in application.yml.

    $ bundle exec cap staging setup
$ cap staging deploy

5. Other