Helps to gather people and plan missions
Install Node.js and MongoDB. Then clone this repo and run:
npm install
# edit environment variables
cp env.sample .env
vim .env
# depending on your setting, start mongo and put the database in the current dir
npm run mongo
# start keystone
npm start
# change the default users password!
- How To Set Up a Node.js Application for Production on Debian 8
- How to Install MongoDB on Debian 8
- How To Secure Nginx with Let's Encrypt on Debian 8
git clone https://github.com/cadus/crewing
cd crewing
npm install
pm2 start index.js --name "crewing"
You might need to adjust the firewall (iptable rules)
# http
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
# https
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
# mail / smtp
iptables -A OUTPUT -p tcp --dport 465 -j ACCEPT
# Backup file
mongodump --db crewing --gzip --archive=crewing.gz
# Restore file
mongorestore --gzip --archive=crewing.gz
# Copy between two servers
ssh server1 mongodump --db crewing --archive --gzip | ssh server2 mongorestore --archive --gzip