river-of-ebooks/install.md

1.4 KiB

Setup instructions

Version info

This app was originally generated on Tue Oct 16 2018 01:21:31 GMT+0000 (UTC) using Sails v1.0.2.

Setup

a Sails v1 application Build Status

Standalone

  1. Standard npm install
git clone https://github.com/EbookFoundation/river-of-ebooks
cd river-of-ebooks
npm i
  1. Configure environment variables in /etc/environemnt
PASSPORT_GOOGLE_ID
PASSPORT_GOOGLE_SECRET
PASSPORT_GITHUB_ID
PASSPORT_GITHUB_SECRET
DATABASE_CONNECTION
  1. Run database migrations
npm run db:migrate
  1. Build public content
npm run build
  1. Start server
npm start

Elastic Beanstalk

  1. Clone repo
git clone https://github.com/EbookFoundation/river-of-ebooks
cd river-of-ebooks
  1. Deploy to environment
eb deploy environment_name
  1. Configure environment variables on elastic beanstalk
PASSPORT_GOOGLE_ID
PASSPORT_GOOGLE_SECRET
PASSPORT_GITHUB_ID
PASSPORT_GITHUB_SECRET
DATABASE_CONNECTION
  1. Run database migrations
npm run db:migrate
  1. Build public content
npm run build
  1. Start server
npm start