Appwrite Sites allows you to host and deploy websites directly within the Appwrite platform. Each site can have many deployments, which can be thought of as versions of the web application.
While we recommend you create deployments through automatic Git deployments, you can also create deployments manually by uploading the source code to the Appwrite Console.
Manual Deployment
You can upload your sites to be deployed using the Appwrite Console. The example below shows a skeleton SvelteKit app.
.
├ src/
├ static/
├ package.json
├ svelte.config.js
├ tsconfig.json
└ vite.config.js
First, create a build using the npm run build command (or an alternative package manager link yarn or pnpm). Then navigate inside the folder that contains your build output (for example, ./build in SvelteKit) and package your code files into the .tar.gz format:
tar --exclude code.tar.gz -czf code.tar.gz .
Next, navigate to your Appwrite Console and upload the site.
Navigate to the site you want to deploy.
Head to the Deployments tab.
Click on the Create deployment button.
Select the Manual option.
Upload code.tar.gz.
Select Activate deployment after build.
Click on the Create button.
Debugging
If you updated your site's configuration but the deployment is not working as expected, you may need to first redeploy your site before the changes take effect.