Prerequisites
- Node >= 6.7.0
- Docker >= 1.12.1
And server/settings.js
should look like:
export const cookieSecret = '';
// Google oauth
export const clientId = '';
export const clientSecret = '';
export const redirectOrigin = '';
โฆbut with the correct values.
To install
npm install # or yarn
npm run install-mongo
To run
npm run serve
Dokku setup
- Install Dokku
- Use vhosts, then:
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
sudo dokku apps:create big-web-quiz
sudo dokku mongo:create big-web-quiz
sudo dokku mongo:link big-web-quiz big-web-quiz
sudo dokku domains:add big-web-quiz bigwebquiz.com
sudo dokku domains:remove big-web-quiz big-web-quiz.bigwebquiz.com
sudo dokku config:set --no-restart big-web-quiz [email protected]
# then push the app (yarn run deploy), then:
sudo dokku letsencrypt big-web-quiz
sudo dokku letsencrypt:cron-job --add
Then up the connection limits in /etc/nginx/nginx.conf
.
worker_rlimit_nofile 90000;
events {
worker_connections 90000;
# multi_accept on;
}
โฆthen restart nginx.