-
Notifications
You must be signed in to change notification settings - Fork 9
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
Updated instructions needed for readme -- this app immediately crashes when I try to run it locally #157
Comments
I think it is something to do with how the .env file is read. I assumed that I should source the env file -- i.e., make sure the variables were in the environment. But I think your code expects to actually read the variables from a file literally called ".env". So my approach of having ".env.prod" and ".env.dev", etc, doesn't work. |
Hi @tadasajon thanks for opening this issue. Concerning the assets: Now that we have updated the project to use Phoenix 1.6 the
see the last section on https://www.phoenixframework.org/blog/phoenix-1.6-released So we indeed need to update the Readme to reflect this change, ie Concerning the environment variables:
You're right, I think we need to add a line in the environment variables section to describe how to do this. the command line
You're correct, the seed file expects to read the Lines 83 to 99 in 3a9d687
This function is then call here: Lines 15 to 18 in 3a9d687
If the application isn't run on Travis (running tests) or Heroku (production application, we don't need .env as the environment variables are directly created in the Heroku application settings) then we read the .env file to create the admin user I would suggest to create the .env file (and make sure all the variables are defined) on your application and run Let us know if this help 👍 |
Ok, I got to a 401 error -- Sorry, invalid AUTH_API_KEY. That is good progress. |
ok, so I'm noticing that The README instructs me to run
|
Sheesh, this app just refuses to work for me. Now I can't get past
The offending line appears to be:
So I have not yet been able to get past |
Can confirm this isn't working on a fresh |
I've just try the running the application again from a fresh git clone and it sees to be working fine for me. |
@SimonLab Yes, I have sourced the I am not sure what I should set in the I cannot get past the setup step in which the I just tried running These lines are throwing an error: # set the api key to AUTH_API_KEY in env:
update_attrs = %{
"client_id" => AuthPlug.Token.client_id(),
"client_secret" => AuthPlug.Token.client_secret()
} The error is: Can you tell me what I should put in my |
By the way, I do include the
So it should at least exist. |
Also, it seems circular for this app to require me to provide it with an |
I cloned this project to my MacBook but couldn't get it running easily.
These instructions fail because there is no
assets/package.json
file.Ignoring assets, for the time being, even after setting an env based on your
.env_sample
file I can't start the app on localhost.
The text was updated successfully, but these errors were encountered: