Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add example steps for forking/following

  • Loading branch information...
commit 320378543cb05e21cd853f6916bb35b4f9162ae3 1 parent b793be1
@rwdaigle authored
Showing with 31 additions and 0 deletions.
  1. +31 −0 README
View
31 README
@@ -1 +1,32 @@
+# Initial setup
+
+heroku create --stack cedar
+heroku addons:add heroku-postgresql:ronin
+heroku pg:wait
+heroku pg:promote HEROKU_POSTGRESQL_COLOR1
+heroku run rake db:migrate
+
+# Fork (~3-5 mins)
+
+heroku addons:add heroku-postgresql:ronin --fork HEROKU_POSTGRESQL_COLOR1
+heroku pg:wait
+heroku pg:psql HEROKU_POSTGRESQL_COLOR1
+> select count(*) from hits;
+heroku pg:psql HEROKU_POSTGRESQL_COLOR2
+> select count(*) from hits;
+- hit site to increment hits
+> select count(*) from hits;
+- No change since was forked - not following master anymore
+heroku addons:remove HEROKU_POSTGRESQL_COLOR2
+
+# Follow
+
+heroku addons:add heroku-postgresql:ronin --follow HEROKU_POSTGRESQL_COLOR1
+heroku pg:wait
+heroku pg:psql HEROKU_POSTGRESQL_COLOR3
+> select count(*) from hits;
+- hit site to increment hits
+> select count(*) from hits;
+- Incrementing since it's following master
+heroku addons:remove HEROKU_POSTGRESQL_COLOR3
Please sign in to comment.
Something went wrong with that request. Please try again.