#neil3rd-connect
1 messages · Page 1 of 1 (latest)
if this where to be deployed in Heroku, how would its directory look like?
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
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?
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.
so in this case, line 29,30, and 31 is not dependent to this
why is then ('index.html') at line 31 not rendering?
what happens instead when you go to http://localhost:4242 , what do you see?
(assuming you are running this server locally per the instructions at https://github.com/stripe-samples/connect-onboarding-for-express/blob/master/server/python/README.md)
this code is being worked on online
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.
skipped the part of running it locally, because of reasons. And went straight to deploying in online
the server.py is running successfully online
maybe you didn't include the frontend?
like you need the files from https://github.com/stripe-samples/connect-onboarding-for-express/tree/master/client as well.
and then you set an environment variable so that the server knows where to find that directory (https://github.com/stripe-samples/connect-onboarding-for-express/blob/f53b0885c6106d02f4a18b145bbaf4c86f0b12e1/.env.example#L6-L7 for example here, it means, look up two levels of directory and then look for a client directory).
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?)
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
how do I include the frontend? how does one "include"?
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.
do you happen to have the URL handy so I can look? Maybe there's a hint in the Chrome devtools.