-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with cloudfoundry_app deployment: Start command not specified #553
Comments
Workaround: move the start command to The apply works with this change ( diff --git a/examples/app/app/Procfile b/examples/app/app/Procfile
new file mode 100644
index 0000000..629b83a
--- /dev/null
+++ b/app/Procfile
@@ -0,0 +1 @@
+web: python main.py
diff --git a/examples/app/main.tf b/examples/app/main.tf
index 5a88797..f24ccfb 100644
--- a/main.tf
+++ b/main.tf
@@ -19,7 +19,6 @@ data "archive_file" "this" {
resource "cloudfoundry_app" "this" {
name = "start-test"
- command = "python main.py"
buildpacks = ["python_buildpack"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like the provider doesn't actually send
command
when deploying acloudfoundry_app
, despiteplan
showing the argumentReplicated using a basic python flask app and this terraform file:
Contents of
app/main.py
andapp/requirements.txt
Other context:
I also tried to push the same app using this
manifest.yml
and it succeeds:The text was updated successfully, but these errors were encountered: