Comments (6)
Honcho has supported this since v0.5.0:
.env:
FOO="hello\nworld"
Procfile:
foo: echo $FOO
honcho output:
$ honcho start
23:59:49 system | foo.1 started (pid=74396)
23:59:49 foo.1 | hello
23:59:49 foo.1 | there
23:59:49 system | foo.1 stopped (rc=0)
from honcho.
@nickstenning I did some testing, and the multiline string handling does not correctly match that of Foreman:
test.procfile
:
print: python -c "import os; print os.getenv('FOO')"
test.env
:
FOO="hello\nworld"
Output from honcho==0.6.5
:
$ honcho start print -f test.procfile -e test.env
10:19:51 system | print.1 started (pid=15473)
10:19:51 print.1 | hello\nworld
10:19:51 system | print.1 stopped (rc=0)
Ouptut from foreman
:
$ foreman start print -f test.procfile -e test.env
10:30:59 print.1 | started with pid 17302
10:30:59 print.1 | hello
10:30:59 print.1 | world
10:30:59 print.1 | exited with code 0
10:30:59 system | sending SIGTERM to all processes
SIGTERM received
I've re-opened #129 which should fix this.
from honcho.
Thanks for this. This is a regression in v0.6.5 introduced by the well-intentioned changes of 08063ea. I'll look into it.
from honcho.
Thanks, I've updated the PR since there were conflicts.
from honcho.
Ugh. Python 3 removed the bytestring-to-bytestring decoders that I used to fix this in 920b0b0. Watch this space...
from honcho.
Life is too short. This will make the tests pass.
😆
from honcho.
Related Issues (20)
- Running multiple workers in background? HOT 1
- Virutalenv on Windows + *nix HOT 2
- Multiple Printers to Honcho Manager? HOT 3
- Dashes in process types HOT 1
- Feature proposal: a honcho module API HOT 3
- Project Status of Honcho? HOT 1
- Stop honcho from Makefile HOT 5
- [bug] Subparsers override common common_args HOT 1
- Honcho buffers output to file HOT 2
- Prefix without timestamp
- Py3.8 RuntimeWarning: line buffering isn't supported in binary mode HOT 4
- PROCFILE envvar is respected only if provided on .env file HOT 1
- Why isn't there "stop" command? HOT 4
- New Release? HOT 4
- systemd exporter not working
- honcho run doesn't load .env variables HOT 2
- Prevent existing environment variables from being overriden?
- Thanks HOT 1
- Support color output by processes
- Why start_new_session=True ? (sorry not really an issue)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honcho.