Compare commits
11
Commits
869d85de23
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d90eaa0907 | ||
|
|
c1d9927d90 | ||
|
|
fb02c498a6 | ||
|
|
2a8fd23409 | ||
|
|
fe079ed6fe | ||
|
|
ea76570acc | ||
|
|
75deff7aca | ||
|
|
9ee5ac6e96 | ||
|
|
82f5c079fe | ||
|
|
137bd0225a | ||
|
|
774b07b924 |
@@ -16,36 +16,11 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22" # match the version your project targets
|
||||
node-version: "22"
|
||||
|
||||
- name: Build (verify it compiles)
|
||||
- name: Verify build (locally)
|
||||
run: |
|
||||
npm ci --no-audit --no-fund
|
||||
npm run build
|
||||
|
||||
- name: Setup SSH client
|
||||
run: |
|
||||
which rsync ssh || (apt-get update && apt-get install -y rsync openssh-client)
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
ssh-keyscan -H 82.165.141.176 >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Copy source to server
|
||||
run: |
|
||||
rsync -avz --delete \
|
||||
--exclude node_modules --exclude .next --exclude out --exclude .git \
|
||||
./ "${{ secrets.DEPLOY_USER }}@82.165.141.176":/var/www/vhosts/dev.karlderheinz.tv/nodejs/<app-name>/
|
||||
|
||||
- name: Install, build and restart on server
|
||||
run: |
|
||||
ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@82.165.141.176 <<'EOF'
|
||||
set -e
|
||||
cd /dev.karlderheinz.tv
|
||||
npm ci --no-audit --no-fund
|
||||
npm run build
|
||||
if [ -d public ]; then
|
||||
cp -r public .next/standalone/public # standalone needs your static assets copied in
|
||||
fi
|
||||
systemctl restart <your-plesk-unit> # or: monit restart <name>
|
||||
EOF
|
||||
#
|
||||
|
||||
+1
-3
@@ -1,7 +1,5 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
// next.config.ts
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
};
|
||||
const nextConfig: NextConfig = {};
|
||||
export default nextConfig;
|
||||
|
||||
Generated
-5741
File diff suppressed because it is too large
Load Diff
Generated
+3839
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user