Skip to content

cadus/crewing

Repository files navigation

crewing

Helps to gather people and plan missions

Run devlopment version

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!

Run in production

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 and restore the database

# 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

About

Helps to gather people and plan missions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published