feat: add a deployment task test for cnb
This commit is contained in:
@@ -7,7 +7,7 @@ cron: python3 worker.py
|
||||
web: python3 web.py # testing inline comment
|
||||
worker: python3 worker.py
|
||||
custom: echo -n
|
||||
release: touch /app/release.test
|
||||
release: python3 release.py
|
||||
|
||||
|
||||
# Old version with separate processes (use this if you have issues with the threaded version)
|
||||
|
||||
10
tests/apps/python/release.py
Normal file
10
tests/apps/python/release.py
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
|
||||
|
||||
def main():
|
||||
print("SECRET_KEY: {0}".format(os.getenv('SECRET_KEY')))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
1
tests/apps/python/requirements.txt
Normal file
1
tests/apps/python/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
flask
|
||||
Reference in New Issue
Block a user