This is the code for the new version of our site at https://ultros.io.
This project uses the Ace editor in the admin interface. The license for Ace can be found in LICENSE_ACE.
- Fill out your
config.yml
based onconfig.example.yml
- Ensure the database you gave above exists
- Run
python3 tools.py run-migrations
- Install and set up Celery
- You can give
ultros_site.tasks.__main__:app
for the Celery app
- You can give
- Set up your WSGI server of choice; the app is
ultros_site.__main__.app
- On your webserver, make sure you serve
/static
directly instead of proxying it to the WSGI app
Simply run python3 tools.py run-migrations
again to make sure your database is up to date after every pull.
If you're going to change the database, do the following:
- Before you edit or create a schema, ensure you run
python3 tools.py run-migrations
so that you're up-to-date- This is important as Alembic uses the current state of the database to generate migrations
- Go ahead and make your edits
- Run
python3 tools.py create-migrations "Summary of the migrations"
- Run
python3 tools.py run-migrations
to update your local database with the migration you just created
If you need to run Alembic manually, please ensure that you set your PYTHONPATH variable to .
(or add .
to it),
otherwise the Alembic environment will not be able to import the database metadata and will fail to load.