docs(self_hosting.md): clarify instructions for setting up environment variables and provide feedback loop recommendation for SKIP_PLANET

refactor(tasks.py): remove unnecessary assertion for cloudflare.ini existence to streamline configuration process
This commit is contained in:
Zsolt Ero
2024-10-11 23:27:29 +03:00
parent 72141bac52
commit 4d93db437a
2 changed files with 8 additions and 3 deletions

View File

@@ -41,11 +41,13 @@ For example "maps.example.com" -> 185.199.110.153
git clone https://github.com/hyperknot/openfreemap
```
Copy `.env.sample` to `.env` and set the values.
In the config folder, copy `.env.sample` to `.env` and set the values.
`DOMAIN_LE` - Your subdomain \
`LE_EMAIL` - Your email for Let's Encrypt
It's recommended to set `SKIP_PLANET=true` first, check if everything works, and run `./init-server.py` a second time with `SKIP_PLANET=false`. This way you get a quick feedback loop for setting up your system.
#### 3. Set up Python if you don't have it yet
On Ubuntu you can get it by `sudo apt install python3-pip`
@@ -67,7 +69,11 @@ Then run the actual deploy command
./init-server.py http-host-static HOSTNAME
```
After this, go for a walk and by the time you come back it should be up and running with the latest planet tiles deployed. Don't worry about the "Download aborted" lines in the meanwhile, it's a bug in CloudFlare.
If you used `SKIP_PLANET=true` then wait a few minutes and see what happens.
If you use `SKIP_PLANET=false` then go for a walk and by the time you come back it should be up and running with the latest planet tiles deployed. Don't worry about the "Download aborted" lines in the meanwhile, it's a bug in CloudFlare.
*// Note: If your server doesn't have an SSD, the download + uncompressing process can take hours.*
---

View File

@@ -212,7 +212,6 @@ def upload_config_json(c):
sys.exit('Please add your email to LE_EMAIL when using DOMAIN_LE')
http_host_list = [h.strip() for h in dotenv_val('HTTP_HOST_LIST').split(',') if h.strip()]
assert (CONFIG_DIR / 'cloudflare.ini').exists()
config = {
'domain_le': domain_le,