Skip to content

Repository files navigation

SETUP

STEP 1

rails s

  • copy paste config.secret_key = 'SOME LONG STRING' into config/initializers/devise.rb

STEP 2

  • stop the server

STEP 3

  • create file secrets.yml in config/secrets.yml

STEP 4

rake secret

STEP 5

  • copy paste output into secrets.yml

development:
secret_key_base: COPY_PASTED_OUTPUT_NOT_IN_QOUTES

  • see an example of that file here
  • yml is very sensitive to spaces and tabs!

STEP 6

bin/rake db:migrate RAILS_ENV=development

STEP 7

rails s

Git workflow

Don't work on master and don't commit your code to master

STEP 1

  • create your branch from master
    git checkout master
    git checkout -b name-of-your-branch

STEP 1

  • work on your new branch

STEP 2

  • commit your work

STEP 3

  • push your branch to github repo
    git push -u name-of-origin name-of-your-branch

STEP 4

  • create pull request to staging branch

About

Resources

Stars

1 star

Watchers

8 watching

Forks

Releases

Packages

Contributors

Languages