Skip to content

Latest commit

 

History

History
113 lines (75 loc) · 1.65 KB

INSTALL.md

File metadata and controls

113 lines (75 loc) · 1.65 KB

Requirements

  • Ruby 1.9
  • PostgreSQL
  • ImageMagick
  • Elasticsearch

Installation

  1. Clone the repo:
git clone https://github.com/viode/viode.git

Note: master branch is always stable.

  1. Enter project folder:
cd viode
  1. Create the database.yml file:
cp config/database.yml.example config/database.yml

Update it with your database credentials.

  1. Create the secrets.yml file:
cp config/secrets.yml.example config/secrets.yml

Adjust as you need.

  1. Install dependencies:
bundle install
  1. Create and seed the database:
rake db:setup

This will create a user with username admin and password 12345678.

  1. Add data to the search index:
rake searchkick:reindex:all

Now you can start the server: rails s.

Installation on Heroku

Create a new branch called heroku:

git checkout -b heroku

Copy 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:master

Set ruby version:

heroku config:set VIODE_RUBY_VERSION=2.2.2

Set devise secret key:

heroku config:set DEVISE_SECRET_KEY=`rake secret`

Run database migrations:

heroku run rake db:migrate

Add 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