-
Notifications
You must be signed in to change notification settings - Fork 628
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
Possible to support multi-line commands inline? #496
Comments
A simpler example since the first one was a little more complex in order to try and convey the motivation a little better.
It's interesting that |
Honestly I prefer the separate shell script in terms of beauty and simplicity. The Procfile should be short and sweet. Keep the complicated commands and logic in shell scripts. I personally tend to create |
OK, thanks for the quick response! |
Then |
Foreman ignores all lines that it does not parse as a valid Procfile entry. If you'd like to make this logic more restrictive I would consider a pull request but it would need to be backwards-compatible with any random comments, etc people have put into their Procfiles. |
If it ignores invalid lines, that would seem to make the |
What if |
The above would allow foreman to be backwards-compatible with whatever crazy stuff people do (e.g: write comments without prefixing with |
Lines 68 to 71 in 876354f
|
Let's say I have this silly
Procfile
.OK, it's silly but it works. Now let's say that I wanted to make it prettier, by breaking the command on to multiple lines. Backslash is a pretty standard line-continuation character...
No love.
I can work around this by putting the command in a separate shell script:
but then this loses some of the simplicity and beauty of the
Procfile
-- it would be nice if I could be done inline somehow. Couldforeman
interpret a backslash at the end of the line as a line continuation?Cc: @sudarkoff
The text was updated successfully, but these errors were encountered: