-
Rename the provided configuration file named .env.sample file to .env and change the settings to your own preferences.
-
Refer to the documentation on Heroku on how to use the configuration variables on your local machine. devcenter.heroku.com/articles/config-vars
-
Install dependencies.
bundle install
-
Migrate your database.
rake db:migarte
-
Populate Twitter followings into database.
rake maintenance:collect_users
-
Start the app using foreman
foreman start --concurrency="web=1,worker=2"
-
Start the Twitter Stream consumer
rake maintenance:start_consumer
-
Create and push the app to Heroku.
heroku apps:create my-twitter-app-name git push heroku master
-
Rename the provided configuration file named .env.sample file to .env and change the settings to your own preferences.
-
Push the configurations to Heroku. For information on how to use the configuration variables on your local machine refer to the documentation on Heroku. devcenter.heroku.com/articles/config-vars
heroku config:push
-
Migrate your database.
heroku rake db:migarte
-
Populate Twitter followings into database.
heroku run maintenance:collect_users
-
Scale your Heroku app to use two workers (one for the API consumer and one for the data processor) and one web process.
heroku ps:scale worker=2 web=1
-
Start the Twitter stream consumer
heroku run rake maintenance:start_consumer