This README document steps necessary to get the application up and running.
You need to install Vagrant and VirtualBox.
Then run vagrant up
. It will take a good time the first time.
After virtual machine(VM) is running run vagrant ssh
to connect to it.
Then install dependencies, setup database and run Rails server with:
cd /vagrant
bundle
rake db:setup
rails s -b 0.0.0.0
On another terminal run vagrant ssh
and run Redis inside VM with:
redis-server
On another terminal run vagrant ssh
and run Sidekiq inside VM with:
cd /vagrant
sidekiq
-
Create a Heroku application with
heroku create name_of_your_app
-
From Heroku web interface you can configure these add ons:
- PostgreSQL
- Redis
-
Create a Twitter application at https://apps.twitter.com/.
-
There is file
config/application.yml.sample
you can copy toconfig/application.yml
. With 4 fields you get from Twitter application. -
To set ENV variables use
figaro heroku:set -e production
. Variables are set atconfig/application.yml
.More about figaro at https://github.com/laserlemon/figaro.
-
git push heroku master
to upload code to Heroku.