diff --git a/.gitignore b/.gitignore index efc4d07..2c8a56a 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,7 @@ next-env.d.ts #secret .env +#build +/pack +subman.tar.gz + diff --git a/Jenkinsfile b/Jenkinsfile index 1ee2541..b6f051b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'){ diff --git a/package.sh b/package.sh index c277ee3..738a4e5 100755 --- a/package.sh +++ b/package.sh @@ -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