1.4 KiB
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
Standalone
- Standard npm install
git clone https://github.com/EbookFoundation/river-of-ebooks
cd river-of-ebooks
npm i
- Configure environment variables in /etc/environemnt
PASSPORT_GOOGLE_ID
PASSPORT_GOOGLE_SECRET
PASSPORT_GITHUB_ID
PASSPORT_GITHUB_SECRET
DATABASE_CONNECTION
- Run database migrations
npm run db:migrate
- Build public content
npm run build
- Start server
npm start
Elastic Beanstalk
- Clone repo
git clone https://github.com/EbookFoundation/river-of-ebooks
cd river-of-ebooks
- Deploy to environment
eb deploy environment_name
- Configure environment variables on elastic beanstalk
PASSPORT_GOOGLE_ID
PASSPORT_GOOGLE_SECRET
PASSPORT_GITHUB_ID
PASSPORT_GITHUB_SECRET
DATABASE_CONNECTION
- Run database migrations
npm run db:migrate
- Build public content
npm run build
- Start server
npm start