Skip to content

Commit 82d03e7

Browse files
committed
docs: Add platform guide to deploy on Appwrite
1 parent f7dc46d commit 82d03e7

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

docs/guide/deployment.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ You can deploy a fresh Vue project, with a Git repository set up for you, with t
325325

326326
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/git?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmaster%2Fexamples%2Fvue)
327327

328-
## References:
328+
#### References:
329329

330330
- [Example Source](https://github.com/vercel/vercel/tree/master/examples/vue)
331331
- [Official Vercel Guide](https://vercel.com/guides/deploying-vuejs-to-vercel)
@@ -514,3 +514,36 @@ Deploy your application using nginx inside of a docker container.
514514
curl localhost:8080
515515
# <!DOCTYPE html><html lang=en>...</html>
516516
```
517+
### Appwrite
518+
519+
[Appwrite](https://appwrite.io) is an open-source, all-in-one cloud development platform that offers developers built-in backend infrastructure and [web hosting](https://appwrite.io/products/sites) for their apps. All sites deployed on Appwrite benefit from a global CDN, automatic deployments from GitHub, and various security features, including DDoS protection, Web Application Firewall (WAF), and TLS encryption.
520+
521+
#### Step 1: Create Vue.js app
522+
523+
Create a new Vue.js app using the Vue CLI (or setup [Appwrite's Vue.js starter template](https://github.com/appwrite/templates-for-sites/tree/main/vue/starter)) and push this project to a [GitHub repo](https://github.com/new).
524+
525+
#### Step 2: Setup Appwrite project
526+
527+
Head to the [Appwrite Console](https://cloud.appwrite.io/) and create a project.
528+
529+
#### Step 3: Deploy site
530+
531+
Head to the **Sites** page in your Appwrite project from the sidebar, click on the **Create site** button, and select **Connect a repository**.
532+
533+
Connect your GitHub account and select the repository you intend to deploy.
534+
535+
1. Select the **production branch** and **root directory** from your repo.
536+
2. Verify that the **correct framework** is selected. In case an incorrect framework is visible, pick **Vue.js** from the drop-down list.
537+
3. Confirm the **install command**, **build command**, and **output directory** in the build settings. The default build settings for Vue.js are:
538+
- **Install command:** `npm install`
539+
- **Build command:** `npm run build`
540+
- **Output directory:** `./dist`
541+
4. Add any environment variables required by the site.
542+
543+
Click on the **Deploy** button. After successful deployment, you can visit your site.
544+
545+
#### More resources
546+
547+
- [Appwrite Sites docs](https://appwrite.io/docs/products/sites)
548+
- [Appwrite's Vue.js starter template](https://github.com/appwrite/templates-for-sites/tree/main/vue/starter)
549+

0 commit comments

Comments
 (0)