Skip to content
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

env2 error #189

Closed
ghost opened this issue Feb 7, 2017 · 8 comments
Closed

env2 error #189

ghost opened this issue Feb 7, 2017 · 8 comments
Labels
bug Suspected or confirmed bug (defect) in the code chore a tedious but necessary task often paying technical debt

Comments

@ghost
Copy link

ghost commented Feb 7, 2017

screen shot 2017-02-07 at 15 03 59

This message appears, but I have done npm install and installed env2

@SimonLab
Copy link
Member

SimonLab commented Feb 7, 2017

This is just a warning which indicate that you haven't define your environmnet variables in a .env file. So if you create this file ".env" at the root of the project the warning should disappear. See the section about the environment variables you will need to define to be able to run the project https://github.com/dwyl/time#required-environment-variables (you might need to run a Postgres database)

@nelsonic
Copy link
Member

nelsonic commented Feb 7, 2017

@markwilliamfirth we should probably put a big warning to potential users that we are migrating this to "New Stack" ... The "old" version has way too many "hoops" to jump through.
dwyl/technology-stack#37 🚀

@nelsonic nelsonic added the bug Suspected or confirmed bug (defect) in the code label Feb 7, 2017
@jackcarlisle
Copy link
Member

I've been seeing the same issue. I created a .env file but it wasn't found. I replaced it with a config.env file and it found it.

@nelsonic
Copy link
Member

nelsonic commented Feb 7, 2017

@jackcarlisle which version of env2 are/were you using?

@jackcarlisle
Copy link
Member

jackcarlisle commented Feb 7, 2017

@nelsonic 2.1.1

@ghost
Copy link
Author

ghost commented Feb 7, 2017

Thanks @SimonLab @jackcarlisle for your help - the error disappeared after creating the .env file manually in Atom.

https://github.com/dwyl/time#required-environment-variables
When following the guide I ran the export commands without a .env file and (obviously) nothing happened.
Would it be possible to add a line in the setup guide that creates a .env file from a terminal command?
Would the following work?
cat > .env
ctrl + c
export DATABASE_URL=postgres://postgres:@localhost/dwyl
export JWT_SECRET=https://git.io/vaN7A

@nelsonic when is the migration happening?

@ghost ghost assigned nelsonic Feb 7, 2017
@nelsonic
Copy link
Member

nelsonic commented Feb 8, 2017

it's a pain that the "Alpha" version of Time is not working for you...
but let's not worry about this for the next couple of weeks while we ramp up our Phoenix capabilities... 😉

@nelsonic nelsonic removed their assignment Feb 8, 2017
@nelsonic nelsonic added the chore a tedious but necessary task often paying technical debt label Feb 8, 2017
@iteles
Copy link
Member

iteles commented Nov 13, 2019

Specific to superseded app, to be written in Phoenix.

@iteles iteles closed this as completed Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Suspected or confirmed bug (defect) in the code chore a tedious but necessary task often paying technical debt
Projects
None yet
Development

No branches or pull requests

4 participants