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.ymlbased 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__:appfor 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
/staticdirectly 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-migrationsso 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-migrationsto 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.