- Ruby 1.9
- PostgreSQL
- ImageMagick
- Elasticsearch
- Clone the repo:
git clone https://github.com/viode/viode.gitNote: master branch is always stable.
- Enter project folder:
cd viode- Create the
database.ymlfile:
cp config/database.yml.example config/database.ymlUpdate it with your database credentials.
- Create the
secrets.ymlfile:
cp config/secrets.yml.example config/secrets.ymlAdjust as you need.
- Install dependencies:
bundle install- Create and seed the database:
rake db:setupThis will create a user with username admin and password 12345678.
- Add data to the search index:
rake searchkick:reindex:allNow you can start the server: rails s.
Create a new branch called heroku:
git checkout -b herokuCopy and add secrets.yml file to git:
cp config/secrets.yml.example config/secrets.yml
git add -f config/secrets.yml
git commit -m "add secrets.yml for heroku"Push heroku branch to heroku:
git push heroku heroku:masterSet ruby version:
heroku config:set VIODE_RUBY_VERSION=2.2.2Set devise secret key:
heroku config:set DEVISE_SECRET_KEY=`rake secret`Run database migrations:
heroku run rake db:migrateAdd Elasticsearch add-on and set ENV["ELASTICSEARCH_URL"]:
heroku addons:add bonsai:starter
heroku config:add ELASTICSEARCH_URL=`heroku config:get BONSAI_URL`Add data to the search index:
heroku run rake searchkick:reindex:all