Skip to content

Commit a0253f3

Browse files
committed
chore: configure
1 parent 9567931 commit a0253f3

File tree

13 files changed

+862
-20
lines changed

13 files changed

+862
-20
lines changed

.claude/settings.local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"Bash(npm run build:windows:*)",
2525
"Bash(npm run)",
2626
"Bash(npm run electron:build:win:*)",
27-
"Bash(npm install:*)"
27+
"Bash(npm install:*)",
28+
"Bash(git push:*)",
29+
"Bash(git mv:*)"
2830
],
2931
"deny": [],
3032
"ask": []

.env.electron

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Electron build environment variables
2+
# Use this for Electron builds to set relative paths
3+
4+
VITE_BASE_PATH=./

.ftpignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Dependencies
2+
node_modules/
3+
server/node_modules/
4+
5+
# Source files (only deploy built files)
6+
src/
7+
server/
8+
tests/
9+
specs/
10+
docs/
11+
12+
# Git
13+
.git/
14+
.github/
15+
.gitignore
16+
17+
# Config files
18+
tsconfig.json
19+
tsconfig.server.json
20+
vite.config.ts
21+
tailwind.config.ts
22+
postcss.config.js
23+
eslint.config.js
24+
playwright.config.ts
25+
jest.config.js
26+
drizzle.config.ts
27+
28+
# Package files
29+
package.json
30+
package-lock.json
31+
32+
# Documentation
33+
*.md
34+
LICENSE
35+
36+
# Environment files
37+
.env
38+
.env.*
39+
40+
# Build tools
41+
electron/
42+
docker-compose.yml
43+
Dockerfile
44+
45+
# Test files
46+
*.spec.ts
47+
*.test.ts
48+
49+
# Editor/IDE
50+
.vscode/
51+
.idea/
52+
*.swp
53+
*.swo
54+
55+
# Other
56+
.husky/
57+
.commitlintrc.json
58+
.prettierrc
59+
.prettierignore
60+
.ftpignore
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy to Hostinger
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch: # Allow manual triggering
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build for production
26+
run: npm run build:web
27+
env:
28+
NODE_ENV: production
29+
30+
- name: Verify build output
31+
run: |
32+
echo "Build directory contents:"
33+
ls -la dist/
34+
echo "Checking for index.html..."
35+
test -f dist/index.html && echo "✓ index.html found" || echo "✗ index.html missing"
36+
37+
- name: Deploy to Hostinger via FTP
38+
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
39+
with:
40+
server: ${{ secrets.FTP_SERVER }}
41+
username: ${{ secrets.FTP_USERNAME }}
42+
password: ${{ secrets.FTP_PASSWORD }}
43+
local-dir: ./dist/
44+
server-dir: /public_html/transcript-parser/
45+
dangerous-clean-slate: false
46+
exclude: |
47+
**/.git*
48+
**/.git*/**
49+
**/node_modules/**

0 commit comments

Comments
 (0)