https://github.com/basemax/vuejs-cicd-deploy-ftp-cpanel
This project demonstrates how to set up a Vue 3 + Vite project using Bun or Node.js, with automated deployment to FTP CPanel VPS using GitHub Actions.
https://github.com/basemax/vuejs-cicd-deploy-ftp-cpanel
cd ci ci-cd cicd cpanel ftp github github-action github-actions vue-cicd vuejs vuejs-cicd
Last synced: 4 months ago
JSON representation
This project demonstrates how to set up a Vue 3 + Vite project using Bun or Node.js, with automated deployment to FTP CPanel VPS using GitHub Actions.
- Host: GitHub
- URL: https://github.com/basemax/vuejs-cicd-deploy-ftp-cpanel
- Owner: BaseMax
- License: mit
- Created: 2025-05-21T09:02:34.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-05-21T09:47:39.000Z (6 months ago)
- Last Synced: 2025-06-26T18:56:52.183Z (4 months ago)
- Topics: cd, ci, ci-cd, cicd, cpanel, ftp, github, github-action, github-actions, vue-cicd, vuejs, vuejs-cicd
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ Vue.js CI/CD Deployment on FTP CPanel (via GitHub Actions)
This project demonstrates how to set up a **Vue 3 + Vite** project using **Bun** or **Node.js**, with automated deployment to **FTP CPanel VPS** using GitHub Actions.
---
## ๐ฆ Tech Stack
- โก [Vue 3](https://vuejs.org/)
- โ๏ธ [Vite](https://vitejs.dev/)
- ๐งช [Bun](https://bun.sh/) or [Node.js](https://nodejs.org/)
- ๐ GitHub Actions CI/CD
---
## ๐งช Development
Run locally with **Bun**:
```bash
bun install
bun run dev
```
Or with npm:
```bash
npm install
npm run dev
```
## โถ GitHub Actions CI/CD
Automatic deployment is also set up via .github/workflows/deploy.yml. On every push to main, it:
- Installs dependencies
- Runs the build script (to generate `dist` directory)
- Upload `dist` directory into target Host(server) via FTP/CPanel.
## ๐ Directory Structure
```bash
.
โโโ .github/workflows/deploy.yml # GitHub Actions CI/CD
โโโ src/ # Vue app source code
โโโ dist/ # Auto-generated after build
โโโ index.html
โโโ vite.config.ts
โโโ package.json
```
## ๐ Scripts in package.json
```json
{
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
}
}
```
## ๐ Notes
You need to add some GitHub Actions env variables.
- `FTP_HOST`
- `FTP_PORT`
- `FTP_USERNAME`
- `FTP_PASSWORD`
- `FTP_PATH`
## ๐ค Author
Seyyed Ali Mohammadiyeh (Max Base)
๐ฌ maxbasecode@gmail.com
๐ https://github.com/BaseMax
## ๐ชช License
MIT