Porównaj commity

...

8 Commity

Autor SHA1 Wiadomość Data
Rui Carmo f7145865ce
Merge pull request #244 from kinostl/bugfix/multi-domain
Add multi-domain workaround due to ClickCommand.
2023-05-12 08:46:22 +01:00
Rui Carmo 6d6872d195
Merge pull request #303 from piku/dependabot/pip/examples/python-postgres/sqlparse-0.4.4
Bump sqlparse from 0.3.0 to 0.4.4 in /examples/python-postgres
2023-05-12 08:45:47 +01:00
Rui Carmo 13225cefdc
Remove my release mention in favor of Chris’ 2023-05-12 08:44:32 +01:00
Rui Carmo fe186f9f86
Merge pull request #306 from chr15m/issue-305-document-release-worker
Document release worker in design doc.
2023-05-12 08:42:56 +01:00
Rui Carmo 0047ceb4dd
Add release worker 2023-05-12 08:42:06 +01:00
Chris McCormick e53ecc254f Document release worker in design doc.
Fixes #305.
2023-05-12 15:41:36 +08:00
dependabot[bot] 77c62719e5
Bump sqlparse from 0.3.0 to 0.4.4 in /examples/python-postgres
Bumps [sqlparse](https://github.com/andialbrecht/sqlparse) from 0.3.0 to 0.4.4.
- [Release notes](https://github.com/andialbrecht/sqlparse/releases)
- [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG)
- [Commits](https://github.com/andialbrecht/sqlparse/compare/0.3.0...0.4.4)

---
updated-dependencies:
- dependency-name: sqlparse
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 20:35:26 +00:00
Minty Cream e28f45049c
Add multi-domain workaround due to ClickCommand.
In practice, ClickCommand.argument splits based on spaces. I couldn't find a way to write config:set NGINX_SERVER_NAME=server1 server2 and had to add this hack to allow for config:set NGINX_SERVER_NAME=server1,server2
2022-05-07 09:14:59 -04:00
3 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -16,11 +16,12 @@ An app is simply a `git` repository with some additional files on the top level,
### `Procfile` format
`piku` recognizes five kinds of process declarations in the `Procfile`:
`piku` recognizes six kinds of process declarations in the `Procfile`:
* `wsgi` workers, in the format `dotted.module:entry_point` (Python-only)
* `web` workers, which can be anything that honors the `PORT` environment variable
* `static` workers, which simply mount the first argument as the root static path
* `release` which is a special worker that is run once when the app is deployed, after installing deps (can be useful for build steps).
* `cron` workers, which require a simplified `cron` expression preceding the command to be run (e.g. `cron: */5 * * * * python batch.py` to run a batch every 5 minutes)
* `worker` processes, which are standalone workers and can have arbitrary names
@ -32,6 +33,7 @@ worker: python long_running_script.py
fetcher: python fetcher.py
# Simple cron expression: minute [0-59], hour [0-23], day [0-31], month [1-12], weekday [1-7] (starting Monday, no ranges allowed on any field)
cron: 0 0 * * * python midnight_cleanup.py
release: python initial_cleanup.py
```
...whereas a generic app would be:

Wyświetl plik

@ -1,4 +1,4 @@
Django>=2.2.9
pytz==2019.1
sqlparse==0.3.0
sqlparse==0.4.4
psycopg2-binary==2.8.3

Wyświetl plik

@ -727,6 +727,10 @@ def spawn_app(app, deltas={}):
# Set up nginx if we have NGINX_SERVER_NAME set
if 'NGINX_SERVER_NAME' in env:
# Hack to get around ClickCommand
env['NGINX_SERVER_NAME'] = env['NGINX_SERVER_NAME'].split(',')
env['NGINX_SERVER_NAME'] = ' '.join(env['NGINX_SERVER_NAME'])
nginx = command_output("nginx -V")
nginx_ssl = "443 ssl"
if "--with-http_v2_module" in nginx: