News for hackers. Stuff that matters.
Re:Phoenix 1.0 by kamac on Friday August 28, 2015 @03:36PM (#10137439)
Relating to redeploying code, did you give https://github.com/codegangsta/gin a look?

Also, any particular reason to not use a web framework such as gin-gonic for routing and templating? It simplifies some things down for me.

Re:Phoenix 1.0 by lpsz on Friday August 28, 2015 @03:46PM (#10137485)
Re: gin, thanks for the tip. I feel like this one makes more sense in development than in production, would like to avoid side effects (first HTTP request restarts the server), also an extra proxy layer.

Re: web framework. Absolutely, no intention to reinvent the wheel. Just informative to rewrite various pieces in the initial stages to get a better grasp on the language/patterns.

Re:Phoenix 1.0 by kamac on Friday August 28, 2015 @03:58PM (#10137542)
About gin, you're right, I think. But what else to use in case the app crashes? A simple shell script to restart the executable whenever it crashes (even though it shouldn't)? :) And what about hot code reloads? You'd have to stop the app for a second there, and replace the executable yourself. You'd also probably interrupt whatever the app was doing at the time, which could turn out pretty bad.
Re:Phoenix 1.0 by lpsz on Friday August 28, 2015 @04:01PM (#10137557)
I use upstart to respawn if crashes, but there's definitely more than one way to solve this one :) Hot code reloads is the more interesting issue.