#neil3rd-connect

1 messages · Page 1 of 1 (latest)

ashen sphinx
#

@shadow kraken hi! What's the question?

shadow kraken
#

if this where to be deployed in Heroku, how would its directory look like?

ashen sphinx
#

I'm not entirely sure, we haven't designed that project with deploying to Heroku in mind. I imagine you'd deploy the whole https://github.com/stripe-samples/connect-onboarding-for-express directory to it in the structure it currently has, I can try it in a little while. In any case you don't need to deploy it to Heroku, you can run and test this locally overall

shadow kraken
#

It's alright, no need for you to try it to deploy in Heroku

#

in line 37 and 38, "# Store the account ID." do I straightforwardly substituent "'account_id'" with actual my stripe account id?

ashen sphinx
#

nope!

#

it's the ID of the account that was just created, on the previous line.

#

The idea is you are creating an Express account for the user who you're onboarding to your platform, that's what the account variable is.

shadow kraken
#

so in this case, line 29,30, and 31 is not dependent to this

#

why is then ('index.html') at line 31 not rendering?

ashen sphinx
#

what happens instead when you go to http://localhost:4242 , what do you see?

shadow kraken
#

this code is being worked on online

ashen sphinx
#

ok. So what do you see when you visit the URL of the server that you've deployed the code to?

#

to clarify, have you tried running this code locally first? It's really intended to be used that way — as a local sever you can run and test with, so you should be comfortable with that before trying to deploy it online.

shadow kraken
#

skipped the part of running it locally, because of reasons. And went straight to deploying in online

ashen sphinx
#

maybe you didn't include the frontend?

#

so there's a lot of things that can go wrong here. Again it would help if you could tell me what you see instead of what you expect to see(I'm guessing you get a 404 page or something?)

shadow kraken
#

what the browser shows is a blank page. not rendering the contents of index.html. blank white webpage. I was expecting it to render the contents of index.html

shadow kraken
ashen sphinx
#

not sure, it depends on how exactly you 'work on this code online' and have deployed it. I've only ever ran this sample locally myself, according to the instructions in the repository.

#

my guess was when you copied files to your server you only copied the /server/python directory perhaps? I could be completely off-base.

ashen sphinx