Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.54 KB

README.md

File metadata and controls

47 lines (39 loc) · 1.54 KB

README

Installation / Setup

  1. clone the repo

  2. brew install elasticsearch@6

  3. gem install bundler

  4. bundle install

  5. Choose one:

    • Docker: docker-compose up
    • Postgres.app:
      1. echo "DEV_POSTGRES_USER=`whoami` \nDEV_POSTGRES_PASSWORD= " >> .env
      2. Add profileAdd profile
      3. Set port to 5433Set port to 5433
  6. rake db:create

  7. rake db:migrate

  8. rake 'responses_csv:import['your/path/to/sample-responses.csv']'

  9. brew services start elasticsearch@6

  10. rails c

  11. Response.__elasticsearch__.create_index!

  12. Response.__elasticsearch__.import

  13. Start redis server: redis-server --port 6400

  14. rails s

  15. Go to: localhost:3100

Test Suite

bundle exec rspec spec

Deployment

Prerequisites:

  1. Ensure the elastic beanstalk CLI is installed and configured
  2. QuillCMS$ eb init --interactive
    • default region -> us-east-1 : US East (N. Virginia)
    • application -> QuillCMS
    • default environment -> Quillcms-production
    • platform -> Puma with Ruby 2.6 on 64bit Amazon Linux
  3. QuillCMS$ git checkout production && git pull
  4. QuillCMS$ bash deploy.sh staging|prod

If you need to ssh into an instance and eb ssh throws a publickey error exception, try eb ssh --setup. More details here.

Infrastructure

TODO