Skip to content

ollej/playnit

Repository files navigation

playnit

Social gaming checkins.

Contact us at: [email protected]

Requires

  • Ruby 2.7.5
  • Rails 5.1
  • Postgres 9.6
  • Redis

Installation

 $ git clone [email protected]:ollej/playnit.git
 $ cd playnit
 $ bundle install
 $ rails s

Install on dokku

  • Install dokku as per its instructions.
  • Install redis plugin
  • Install postgresql plugin
 $ git remote add dokku [email protected]:playnit
 $ git push dokku master
 $ ssh -t example.com dokku config:set DEVISE_SECRET_KEY="`rake secret`"
 $ ssh -t example.com dokku config:set SECRET_TOKEN="`rake secret`"
 $ ssh -t example.com dokku redis:create playnit
 $ ssh -t example.com dokku postgresql:create playnit
 $ ssh -t example.com dokku postgresql:link playnit playnit
 $ ssh -t example.com dokku redis:link playnit playnit
 $ ssh -t example.com dokku run playnit rake db:migrate

Setup

Start postgres

/usr/local/opt/[email protected]/bin/pg_ctl -D /usr/local/var/postgresql start