local build works (including static)
This commit is contained in:
parent
19109b2b35
commit
5fb913b6a3
|
@ -38,3 +38,7 @@ next-env.d.ts
|
||||||
#secret
|
#secret
|
||||||
.env
|
.env
|
||||||
|
|
||||||
|
#build
|
||||||
|
/pack
|
||||||
|
subman.tar.gz
|
||||||
|
|
||||||
|
|
|
@ -9,13 +9,6 @@ agent any
|
||||||
steps{
|
steps{
|
||||||
sh 'npm install'
|
sh 'npm install'
|
||||||
sh 'npm run build'
|
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'){
|
stage('deploy'){
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
mkdir pack
|
mkdir pack
|
||||||
cp -r public pack/
|
cp -r public pack/
|
||||||
cp -r prisma pack/
|
cp -r prisma pack/
|
||||||
cp - r .next/standalone/** pack/
|
cp -r .next/standalone/. pack/
|
||||||
cp -r .next/static pack/.next/
|
cp -r .next/static pack/.next/
|
||||||
tar -cf subman.tar.gz pack
|
tar -cf subman.tar.gz pack
|
||||||
rm -r pack
|
rm -r pack
|
||||||
|
|
Loading…
Reference in New Issue