Open pwalkr opened 9 months ago
Workaround: move the start command to Procfile
(as recommended by app log "No start command specified by buildpack or via Procfile. App will not start unless a command is provided at runtime.")
The apply works with this change (git diff
)
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"]
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: