Help noob with self hosting project

I’m a total noob when it comes to Github and self-hosting on Cloudflare and need some help explaining a few things before I dive in.

  1. I’ve connected my Github account to WeWeb and selected a newly created repository. Do I send the Source code or Built code to Github?
  2. My app is already deployed, does doing this export automatically change anything with WeWeb hosting? It’s a live site with paying users.
  3. Cloudflare now recommends using Workers instead of Pages. Looks like I can import the Github repository using the Workers setup option. Any issues with this over uploading the zip of project assets to the Cloudflare Page setup (ie documentation way)?
  4. The documentation shows that Google Services will no longer work because it required WeWeb microservices. Does this include the Google Map component? If so, how do you compensate for this? A custom JS component?
  5. Once I’m ready to self-host, do I just use the Remove Domain button on the project setting in WeWeb to release the domain? Anything else I would need to do?

TIA

Hi Eric :waving_hand:,

I’m glad you are exploring a self-hosting option.

My knowledge on this is quite limited, so why don’t we summon a couple community heroes to help you with this?

@Batik_Okazov @sam1

@Agustin_Carozo , glad to help, but you overestimate me a bit :slight_smile:

@ericp , hi!

Let’s go over your questions:

  1. The files sent to Github are Source code. So before deploying you need to build the project.
  2. Code export itself doesn’t affect your published project. Any change you make will affect your published project only if you redeploy.
  3. Don’t familiar with Cloudflare setup. Can’t help.
  4. I’m unsure about the Google Map component. It’s likely that it’s part of a microservice, so it won’t work on a self-hosted project. You’re probably right, a custom JS component or something imported via NPM might be the best solution.
  5. You need to remove domain and properly set new registration records with the domain registrar.
2 Likes

I have a ready Google Maps component which should work. It’s a Custom Component from a while back. HMU if you need it.