Both environments rely on docker and docker-compose. See new INSTALL.md to see how the new development environment differs from the current one. Feedback on new development environment would be much appreciated!
If this new process does not work on your machine, you can still follow the old instructions in INSTALL-OLD.md
Main Changes are:
Uses docker-compose to open multiple 'linked' containers necessary for each environment
Development Containers:
PostgreSQL (Database - Cleared and reseeded between reruns)
Web (Webapp - Uses flask to run a development version of the app)
Webpack (An 'npm run watch' process that automatically rebuilds frontend when changes are made)
Production Containers:
PostgreSQL (Database - Persists data between reruns)
Postgres Backup (Backups database daily)
Web (Webapp - Uses gunicorn to run a production version of the app)
Nginx (Serves the webapp)
Database now uses PostgreSQL instead of a SQLite (PostgreSQL runs as its own docker container)
You can use psql or DBeaver to access the database (see new INSTALL.md for more details)
Development environment now automatically enables live reloading of the website. Whenever you change a .jsx file, it will now automatically rebuild the site and changes can be seen after a hard-refresh/clear cache.
Both environments rely on docker and docker-compose. See new INSTALL.md to see how the new development environment differs from the current one. Feedback on new development environment would be much appreciated!
If this new process does not work on your machine, you can still follow the old instructions in INSTALL-OLD.md
Main Changes are: