The next Humanitarian OpenStreetMap Team website - https://alpha.hotosm.org/en-gb/
- In VSCode, run the command
Clone Repository in Remote Container Volume
and enter the URL of this repository. - Wait for dependencies to install.
- In VSCode navigate to Run & Debug and launch the Start App configuration).
- Navigate to http://localhost:8000.
- VSCode Development Containers
- Github Actions
- Docker
- Configure locales in the Wagtail Admin UI
- Configure DeepL by adding
DEEPL_API_KEY
- Configure menus
- Add links to Main Menu
- Create
footer
flat menu
- Download the live HOTOSM repo to
./hotosm-website
:
git clone https://github.com/hotosm/hotosm-website.git
- Migrate the content into the CMS
git clone https://github.com/hotosm/hotosm-website ./old-cms-content --filter=blob:limit=5k
python manage.py migrate_content --source ./old-cms-content --scratch True
- Github actions auto trigger deploys to fly. To enable deployments, manually create the required apps:
- Create the web app:
fly apps create --name hotosm-staging
- Create the database:
fly postgres create --name hotosm-staging-pg
- Link the database to the web app:
fly postgres attach hotosm-staging-pg --app hotosm-staging
- Create the web app:
- Set environment secrets with
fly secrets set KEY="VALUE" KEY2="VALUE2" ...
. The minimal settings you will require are:SECRET_KEY=## generate via https://djecrety.ir/
- After the first deploy has completed, you can run
fly ssh console --app hotosm-staging
to enter the app and run set up commands, etc.- Run
cd app
to enter the project root - Use
poetry run ...
to access the python environment- E.g.
poetry run python manage.py createsuperuser
- E.g.
- Run