mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Moved datasette build to a post_compile hook.
This commit is contained in:
parent
f48cb705d8
commit
6eb23d2143
2 changed files with 2 additions and 4 deletions
|
|
@ -229,6 +229,8 @@ def temporary_heroku_directory(files, name, metadata, extra_options, extra_metad
|
|||
|
||||
open('runtime.txt', 'w').write('python-3.6.2')
|
||||
open('requirements.txt', 'w').write('datasette')
|
||||
os.mkdir('bin')
|
||||
open('bin/post_compile', 'w').write('datasette build --inspect-file inspect-data.json')
|
||||
|
||||
quoted_files = " ".join(map(shlex.quote, files))
|
||||
procfile_cmd = f'web: datasette serve --host 0.0.0.0 {quoted_files} --cors --port $PORT --inspect-file inspect-data.json'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue