-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Express 4? #159
Comments
+1 |
3 similar comments
+1 |
+1 |
+1 |
+2 👍 |
+1 =) |
+1 |
It seems that the development of locomotive is and has been halted for a while now; the last commit was on April 9. |
👍 I hope @jaredhanson will answer to your question @anmonteiro |
It seems that others developpers start the migration to locomotive 0.5.x here : https://github.com/drudge/locomotive/tree/feature/express4 |
I've been able to successfully port my older Locomotive installation to Express 4.0 by making nominal changes to the package.json, /config/environments/all.js file and config/environments/development.js file. These changes basically involve requiring each module appropriately and calling the new stand-alone modules rather than the express.foo versions of them. I'd be very happy to post a PR However, this is my build and there are things that I'm sure Locomotive is capable of that I'm not leveraging. so I don't feel 100% comfortable that it's a stable foundation for other development. |
+1 |
+1, hmm is Locomotive no longer active? |
@crispen-smith I have update my /config/environments/all.js file and config/environments/development.js and install express 4. But when I run my app I receive this error:
How do you successfully port your older Locomotive installation to Express 4.x?? |
I confirm, if you used this project https://github.com/drudge/locomotive/tree/feature/express4 in the branch The modifications for me concerns :
Read the Express3 to Express 4 migration for your cases |
I'm using these modules:
I start my app using server.js (https://github.com/jaredhanson/locomotive/wiki/Migrating-from-0.3.x-to-0.4.x) if I update locomotive using the module https://github.com/drudge/locomotive/tree/feature/express4
any suggestion? |
I use RedisStore like this :
In Express4, session part is removed and, to used it, you need to have connect module |
@throrin19 are you using connect-session module? |
No, i see the usage here : http://www.senchalabs.org/connect/session.html |
This is my first part for the all.js file with express4 migration :
|
if I use:
I receive this error:
Do you start your app using server.js file? -> node server.js |
What is your connect version and connect-redis version ? I used this :
Yes, i start app using server.js file |
I've installed connect right now:
|
I think I should use:
|
After test, this is your connect version, with the Try with this module : https://github.com/mpneuried/connect-redis-sessions |
Thanks for help @throrin19, ... my last version
works 👍 but I have this warning:
|
the method req.param is deprecated and it will be removed in next express release. I recommand you to use In some controllers, i use this.req.param but i haven't this warning message |
@throrin19 which version are you using? I'm using express version 4.12.2. |
i used the version |
this warning appear since express 4.11.0.
to:
the warning disappear even on express version >= 4.11.0 :) |
the problem with your modification is the The correct way is this :
|
Hi!
When would Locomotive track Express 4?
Thanks
The text was updated successfully, but these errors were encountered: