local build works (including static)

This commit is contained in:
andrzej 2024-10-04 11:15:10 +02:00
parent 19109b2b35
commit 5fb913b6a3
3 changed files with 5 additions and 8 deletions

4
.gitignore vendored
View File

@ -38,3 +38,7 @@ next-env.d.ts
#secret
.env
#build
/pack
subman.tar.gz

7
Jenkinsfile vendored
View File

@ -9,13 +9,6 @@ agent any
steps{
sh 'npm install'
sh 'npm run build'
sh 'mkdir standalone'
sh 'cp -r public standalone/'
sh 'cp -r prisma standalone/'
sh 'cp -r .next/static standalone/.next/'
sh 'cp -r .next/standalone/** standalone/'
sh ' tar -cf subman.tar.gz standalone '
sh 'rm -r standalone'
}
}
stage('deploy'){

View File

@ -3,7 +3,7 @@
mkdir pack
cp -r public pack/
cp -r prisma pack/
cp - r .next/standalone/** pack/
cp -r .next/standalone/. pack/
cp -r .next/static pack/.next/
tar -cf subman.tar.gz pack
rm -r pack