-
Notifications
You must be signed in to change notification settings - Fork 225
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
Can't migrate on Windows #83
Comments
Hey @alendorff. I was actually going to release the |
Alas, but situation with 1.0.0-2 is exactly the same. |
Interesting. Have you tried with npm? Also what node version? |
Yes, it's the same with npm.
|
Ok, found it. npm creates a
Then ran:
And that seemed to work. Hope that helps. |
Yes, thank you, it seems like simple |
Not really a solution, but db-migrate loads |
I think maybe since I don't use windows I don't understand the use case. Can you not just do:
Or any other method of setting env variables? Would love to get input on how people want this to work. |
@wesleytodd yes, of course it will work, but it's a bit inconvenient. |
Could you suggest what you would rather have? |
@wesleytodd I would rather have .env file :) |
Can you elaborate? Should it be loaded in with an
I always used the system I am on to manage my environment variables, or just a small bash script wrapper during development if I need it. I have never felt the need for a tool to support them directly, so I need more info on how you would want it to work. |
@LinusU mentioned this module: https://www.npmjs.com/package/dotenv Is this what you are talking about? |
Yes, |
@wesleytodd yes, it's exactly what I meant. |
Awesome, this I can go on. I just read through that module module's readme and it looks solid. I will work on support for this. Thanks for following up with me! |
I have set of migrations which works perfectly on linux systems, but when I try to run migrations on Windows machine I get the following:
This is
migrate
script command:"migrate": "node -r dotenv/config node_modules/.bin/migrate --state-file runtime/.migrate",
The text was updated successfully, but these errors were encountered: