spotify/lingon

Using deprecated API on Express?

jpettersson opened this issue · 0 comments

From nikek:

So, I was getting 404s when I was trying to reach the local lingon proxy to one of our backends.

I ran an update and am now getting this small warning from Express:
[ Lingon ] Working directory: /Users/nikek/web/stdev/alien
express deprecated app.configure: Check app.get('env') in an if statement node_modules/lingon/lib/server.js:45:7
[ Lingon ] http server listening on: 0.0.0.0:5678

I checked that file and saw a new serverConfigure event.
So I tried trigger my proxy-setup in lingon.js on that instead.
And it works!

If you or someone else find themselves in the same situation, here’s a potential solution.