Website displaying humanitarian crisis and news using OpenStreetMap and ReliefWeb.
- setup https / apache2
- install
postgresqland init- login to psql promt (
sudo -u postgres psql) - set new password (
\password) - create database (
CREATE DATABASE crisismap;)
- login to psql promt (
- setup your
.envfile (have a look at the example.env_examplefile) - install Python 3 and NodeJS (
sudo apt install python3-pip python3 nodejs) - setup database with script
database_init_crisis_collector.py - install packages and updates by running
./update_server.sh - use something like
pm2to keep track of running the two scripts - use command
gruntorgrunt watch --forceto keep be sure minified js is up to date
- create postgres user in
psqlprompt withCREATE ROLE name WITH SUPERUSER LOGIN; - copy one postgres database to another server with
pg_dump -C dbname | bzip2 | ssh remoteuser@remotehost "bunzip2 | psql dbname" - convert color of icon and keep transperancy:
convert *.png -fill "#ffffff" -colorize 100 - have a look at this guide
- start
pm2process with watching:pm2 start file --watch - minify html, css and JS
- nginx https
- enable gzip
- run fail2ban