exec server commands via ssh
	
		
			
	
		
	
	
		
			
				
	
				Gitea/subman-nextjs/pipeline/head This commit looks good
				
					Details
				
			
		
	
				
					
				
			
				
	
				Gitea/subman-nextjs/pipeline/head This commit looks good
				
					Details
				
			
		
	This commit is contained in:
		
							parent
							
								
									78b599bfcf
								
							
						
					
					
						commit
						fd7ec2d42b
					
				| 
						 | 
					@ -13,7 +13,8 @@ agent any
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		stage('deploy'){
 | 
							stage('deploy'){
 | 
				
			||||||
			steps{
 | 
								steps{
 | 
				
			||||||
				sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/subman', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
 | 
									sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'pm2 start subman', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/subman', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
 | 
				
			||||||
 | 
									sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'pm2 start subman', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/subman/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '.next/standalone')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
/** @type {import('next').NextConfig} */
 | 
					/** @type {import('next').NextConfig} */
 | 
				
			||||||
const nextConfig = {
 | 
					const nextConfig = {
 | 
				
			||||||
 | 
					  output: "standalone",
 | 
				
			||||||
  webpack: (config) => {
 | 
					  webpack: (config) => {
 | 
				
			||||||
    config.externals = [...config.externals, "bcrypt"];
 | 
					    config.externals = [...config.externals, "bcrypt"];
 | 
				
			||||||
    return config;
 | 
					    return config;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue