Giter Club home page Giter Club logo

Comments (6)

wojtekmach avatar wojtekmach commented on May 25, 2024

I guess this is similar when trying to run in two terminals mix phoenix.server and iex -S mix phoenix.server for any phoenix app. I'm not sure about the code change above, I think a cleaner approach would be to have a dedicated mix task that starts http. (e.g.: cd apps/master_proxy && mix start.)

TBH, I don't think it's a big deal and I'd just leave it as is. I almost never use master_proxy in development (because I lose live-reloading) and instead I just start in umbrella root: iex -S mix phoenix.server. I only really needed master_proxy for heroku deployment. If you feel like fixing it though, I'd be happy to accept a PR!

from acme_bank.

enilsen16 avatar enilsen16 commented on May 25, 2024

Yeah not a bad idea. When I tried to access acme_bank on heroku this is where I first had the issue actually.

from acme_bank.

wojtekmach avatar wojtekmach commented on May 25, 2024

Weird, just before commenting I specifically tested if stuff was ok on
heroku and it seemed fine. the app was running and I could connect with:
heroku run iex -S mix without problems

W dniu pt., 11.11.2016 o 18:49 Erik Nilsen [email protected]
napisaล‚(a):

Yeah not a bad idea. When I tried to access acme_bank on heroku this is
where I first had the issue actually.

โ€”
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEpJzdnG3xRNqUyTFxsQ2RK05cQSI8Dks5q9KqtgaJpZM4KvFQq
.

from acme_bank.

enilsen16 avatar enilsen16 commented on May 25, 2024

I am not quite sure what a mix task would look like for this particular case though. What I expected was to be able to run both side by side just like mix phoenix.server and iex -S mix. After quickly glancing at what phoenix does for the mix phoenix.server mix task, it seems to just run mix run --no-halt.

Which doesn't solve the problem of MasterProxy.Plug.HTTP starting twice. Maybe I am missing something but isn't that the problem?

from acme_bank.

enilsen16 avatar enilsen16 commented on May 25, 2024

Also I retried acme-bank on heroku. You're right it seems to work there fine, however locally I still have issues....

from acme_bank.

enilsen16 avatar enilsen16 commented on May 25, 2024

Closing this for now...

from acme_bank.

Related Issues (16)

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.