Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Updates the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaskorhonen committed Jul 14, 2012
1 parent 23f8bd6 commit c782aea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -33,11 +33,13 @@ There is a `rails_upgrade` branch where some of this work has been started and p

4. Create database.yml in the config folder. You can `cp config/database.example.yml config/database.yml` to get a starting point.

5. Setup the database (create DB, load schema, load seed data)
5. Create the `.env` file. You can `cp sample.env .env` to get a starting point.

6. Setup the database (create DB, load schema, load seed data)

`rake db:setup`

6. Start the app
7. Start the app

`foreman start`

Expand Down
7 changes: 2 additions & 5 deletions config/initializers/secret_token.rb
Expand Up @@ -7,8 +7,5 @@

# Set the session secret as an environment variable.
# Generate a new secret with `rake secret`
if ENV["SECRET_TOKEN"]
SplendidBacon::Application.config.secret_token = ENV["SECRET_TOKEN"]
else
raise "You must set the SECRET_TOKEN environment variable!"
end

SplendidBacon::Application.config.secret_token = ENV["SECRET_TOKEN"]
3 changes: 2 additions & 1 deletion sample.env
@@ -1,2 +1,3 @@
RACK_ENV=development
SECRET_TOKEN=fd739b6b4445a829c21ad88a33cea6e327676bd8d345697e2ea3339531210b1971d2cf41362eec4471f78483ea6f5dfe3c84c73b3d3b75bff8daf3155f02a0b3
HOST=example.herokuapp.com
HOST=localhost:5000
1 change: 1 addition & 0 deletions spec/spec_helper.rb
@@ -1,5 +1,6 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
ENV["SECRET_TOKEN"] ||= "ThisIsAReallyBadSecretBecauseItIsHardCoded45697e2ea3339531210b1971d2cf41362eec4471f78483ea6f5dfe3c84c73b3d3b75bff8daf3155f02a0b3"
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'

Expand Down

0 comments on commit c782aea

Please sign in to comment.