Permalink
Browse files

Added comments in README as I was trying to make it work locally from…

… scratch
  • Loading branch information...
1 parent aad4d9d commit 3473521ceb9f47fdc9735f903fca50a48a94b434 @ihassin ihassin committed Jan 21, 2013
Showing with 31 additions and 24 deletions.
  1. +16 −1 README.md
  2. +6 −23 db/schema.rb
  3. +9 −0 logfile
View
@@ -27,12 +27,27 @@ To confirm you have the appropriate requirements:
## Usage
-Make sure the tests pass:
+* Make sure gems are up to date:
+
+ $ bundle
+
+* Make sure Postgres is running
+
+* Make sure the database exists and is migrated
+
+ $ rake db:create
+ $ rake db:migrate
+
+* Make sure the tests pass:
$ rake
To get the smoke tests to pass, you'll need to have the right OAUTH variables, either by running `./script/gen_google_oauth` or getting the right variables from a friend and then setting them in your environment. You'll also need to be running the local server:
+* Make sure Redis is running
+
+Run the app locally
+
$ rails server
Alternatively, you can use Foreman:
View
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130103213214) do
+ActiveRecord::Schema.define(:version => 20130102220933) do
create_table "bounced_emails", :force => true do |t|
t.text "raw_content"
@@ -57,7 +57,6 @@
t.string "action_id"
end
- add_index "facebook_actions", ["action_id"], :name => "index_facebook_actions_action_id"
add_index "facebook_actions", ["member_id"], :name => "index_likes_on_member_id"
add_index "facebook_actions", ["petition_id"], :name => "index_likes_on_petition_id"
@@ -81,16 +80,6 @@
add_index "facebook_share_widget_shares", ["user_facebook_id", "friend_facebook_id", "url"], :name => "unique_share", :unique => true
- create_table "ip_locations", :id => false, :force => true do |t|
- t.integer "ip_from", :limit => 8
- t.integer "ip_to", :limit => 8
- t.string "country_code", :limit => 2
- t.text "country_name"
- t.text "region"
- t.text "city"
- t.string "state_code", :limit => 2
- end
-
create_table "last_updated_unsubscribes", :force => true do |t|
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
@@ -101,22 +90,18 @@
t.boolean "is_locked"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
- t.text "uuid"
end
create_table "members", :force => true do |t|
t.string "email"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
t.string "first_name"
t.string "last_name"
t.string "referral_code"
t.string "country_code"
t.string "state_code"
- t.boolean "null_last_name"
- t.boolean "blank_last_name"
- t.boolean "blank_first_name"
- t.integer "facebook_uid", :limit => 8
+ t.integer "facebook_uid", :limit => 8
end
add_index "members", ["email"], :name => "index_members_on_email", :unique => true
@@ -299,16 +284,14 @@
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "signature_id"
- t.datetime "clicked_at"
t.datetime "opened_at"
+ t.datetime "clicked_at"
t.string "type", :default => "SentEmail"
end
add_index "sent_emails", ["clicked_at"], :name => "index_sent_emails_on_clicked_at"
add_index "sent_emails", ["created_at"], :name => "index_sent_emails_on_created_at"
- add_index "sent_emails", ["created_at"], :name => "sent_emails_created_idx"
add_index "sent_emails", ["member_id"], :name => "index_sent_emails_on_member_id"
- add_index "sent_emails", ["member_id"], :name => "sent_emails_member_id_idx"
add_index "sent_emails", ["opened_at"], :name => "index_sent_emails_on_opened_at"
add_index "sent_emails", ["petition_id"], :name => "index_sent_emails_on_petition_id"
add_index "sent_emails", ["signature_id"], :name => "index_sent_emails_on_signature_id"
@@ -333,7 +316,7 @@
t.string "state"
t.string "state_code"
t.string "country_code"
- t.text "http_referer"
+ t.string "http_referer"
end
add_index "signatures", ["created_at"], :name => "index_signatures_on_created_at"
View
@@ -0,0 +1,9 @@
+LOG: database system was shut down at 2013-01-21 10:30:13 EST
+LOG: database system is ready to accept connections
+LOG: autovacuum launcher started
+FATAL: database "victorykit_development" does not exist
+FATAL: database "victorykit_development" does not exist
+FATAL: database "victorykit_development" does not exist
+FATAL: database "victorykit_test" does not exist
+FATAL: database "victorykit_test" does not exist
+FATAL: database "victorykit_test" does not exist

0 comments on commit 3473521

Please sign in to comment.