- 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.
npm install # or yarn
npm run install-mongo
npm run serve
- 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 DOKKU_LETSENCRYPT_EMAIL=jaffathecake@gmail.com
# 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.