-
Notifications
You must be signed in to change notification settings - Fork 0
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
Issues booting app #3
Comments
Nevermind, figured it out: |
Now just some issues with connecting to the database. Will investigate. |
Have you set postgres up? Alter the username and password in config/dev.
I can run you through the propper setup or even make a script for it too :)
…On Sun, Aug 12, 2018, 17:00 Peita Lin ***@***.***> wrote:
Now just some issues with connecting to the database. Will investigate.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASqH89PBAWRvtPZxxKi-Cw0Ln6mArjcEks5uQMGMgaJpZM4V5vI->
.
|
Yeah essentially because variables aren't static they're classed as
functions, it seems like it's not evaluating the condition to return a
value for it, will suss tomorrow :)
…On Sun, Aug 12, 2018, 16:53 Peita Lin ***@***.***> wrote:
Running into an issue when trying to run the phoenix app:
** (CompileError) lib/cryptscrape/accounts/user.ex:42: undefined function details/0
(stdlib) lists.erl:1338: :lists.foreach/2
(stdlib) erl_eval.erl:677: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:206: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/6
Seems like it thinks details is a function in:
lib/cryptscrape/accounts/user.ex:42 for some reason:
def create_stripe_account(email) do
request = Stripe.Customer.create(%{email: email}) |> IO.inspect
case request do
{:ok, data} ->
details = %{email: data.email, id: data.id}
{:error, data} ->
IO.inspect data
IO.puts "Stripe Did Not Work"
details = %{email: email, id: "did not work"}
end
details
end
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASqH81F9IMNJPZ4GKyavP2slPN_36Oruks5uQL_ggaJpZM4V5vI->
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running into an issue when trying to run the phoenix app:
Seems like it thinks
details
is a function in:lib/cryptscrape/accounts/user.ex:42
for some reason:The text was updated successfully, but these errors were encountered: