To deploy your application, it takes two steps:
- Configure where to deploy it to
- Deploy it
You have to configure the deployment once per service. This gives you the flexibility to deploy individual services independently. For example, you can deploy the web
service to Vercel while you host the API & database on Google Cloud Platform.
Please use the pnpm webstone web configure deployment
CLI command and follow the prompts.
You can deploy individual services independently or all at once. The CLI command to use is pnpm webstone deploy [service] [--preview]
.
The pnpm webstone deploy
CLI command prepares your application for deployment. Many hosting providers nowadays support a convenient integration with your git provider such as GitHub, GitLab or Bitbucket. Consult the following provider-specific sections to deploy your application.
To prepare your web
service for deployment, run pnpm webstone deploy web
.
TBD: Pull requests welcome 🙏
TBD: Pull requests welcome 🙏
TBD: Pull requests welcome 🙏
TBD: Pull requests welcome 🙏
To get started, please use Vercel's "Create a New Project" instructions at https://vercel.com/docs/get-started.
Vercel automatically detects that the web
service is a SvelteKit application - no configuration necessary.
What you do have to teach Vercel though is that the web
service is located in the services/web
directory rather than the root of the project which is assumed by Vercel by default.
As you set up (or configure) your project on Vercel, pay close attention to the "Root Directory" configuration option. Make sure this is set to
services/web
.
That's it,