Code Monkey home page Code Monkey logo

Comments (6)

nickstenning avatar nickstenning commented on May 22, 2024

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.

joshfriend avatar joshfriend commented on May 22, 2024

@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.

nickstenning avatar nickstenning commented on May 22, 2024

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.

joshfriend avatar joshfriend commented on May 22, 2024

Thanks, I've updated the PR since there were conflicts.

from honcho.

nickstenning avatar nickstenning commented on May 22, 2024

Ugh. Python 3 removed the bytestring-to-bytestring decoders that I used to fix this in 920b0b0. Watch this space...

from honcho.

joshfriend avatar joshfriend commented on May 22, 2024

Life is too short. This will make the tests pass.

😆

from honcho.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.