Server-side functionalities for Ágora Mobile
- Install ruby
- Run 'gem install bundler'
- Run 'export PATH=$PATH:~/.gem/ruby/2.3.0/bin'
- Run 'bundle install'
- Setup your postgres database and user (e.g. agora database with agora user - agora password)
- Run 'export DATABASE_URL="postgres://agora:agora@localhost/agora"'
- Run 'rake db:migrate'
- Run 'psql -U agora -W agora'
- Enter password 'agora'
- Populate database by running '\i populate-database.sql'
- Install heroku-toolbelt
- Run 'heroku login'
- Run 'heroku local web'
- To push your local postgresql data to heroku's server, run './pg-push.sh'
- Enjoy!