log with current time
This commit is contained in:
		
							parent
							
								
									d07de056e7
								
							
						
					
					
						commit
						36cc26a41f
					
				
							
								
								
									
										15
									
								
								deploy.js
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								deploy.js
									
									
									
									
									
								
							@ -204,12 +204,14 @@ function deployToSsh (connection) {
 | 
				
			|||||||
      ssh.dispose()
 | 
					      ssh.dispose()
 | 
				
			||||||
      if (err) {
 | 
					      if (err) {
 | 
				
			||||||
        console.error(
 | 
					        console.error(
 | 
				
			||||||
          `🤷♀️🤷♀️🤷♀️ Failed deploy ${envarDeploy.fromPath} to ${connection.targetPath}/${connection.targetFolder} 🤷♀️🤷♀️🤷♀️`
 | 
					          new Date(),
 | 
				
			||||||
 | 
					          `❌❌❌ Failed deploy ${envarDeploy.fromPath} to ${connection.targetPath}/${connection.targetFolder} ❌❌❌`
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        process.exit(1)
 | 
					        process.exit(1)
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        console.info(
 | 
					        console.info(
 | 
				
			||||||
          `😊😊😊 Successfully deployed [${envarDeploy.fromPath}] to [${connection.targetPath}/${connection.targetFolder}] 😊😊😊`
 | 
					          new Date(),
 | 
				
			||||||
 | 
					          `✅✅✅ Successfully deployed [${envarDeploy.fromPath}] to [${connection.targetPath}/${connection.targetFolder}] ✅✅✅`
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        if (connection.url) {
 | 
					        if (connection.url) {
 | 
				
			||||||
          console.info(`😊😊😊 ${connection.url} 😊😊😊`)
 | 
					          console.info(`😊😊😊 ${connection.url} 😊😊😊`)
 | 
				
			||||||
@ -221,7 +223,8 @@ function deployToSsh (connection) {
 | 
				
			|||||||
      console.error(err)
 | 
					      console.error(err)
 | 
				
			||||||
      ssh.dispose()
 | 
					      ssh.dispose()
 | 
				
			||||||
      console.error(
 | 
					      console.error(
 | 
				
			||||||
        `🤷♀️🤷♀️🤷♀️ Failed deploy [${envarDeploy.fromPath}] to [${connection.targetPath}/${connection.targetFolder}] 🤷♀️🤷♀️🤷♀️`
 | 
					        new Date(),
 | 
				
			||||||
 | 
					        `❌❌❌ Failed deploy [${envarDeploy.fromPath}] to [${connection.targetPath}/${connection.targetFolder}] ❌`
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
      process.exit(1)
 | 
					      process.exit(1)
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
@ -370,7 +373,8 @@ function deployToGit (connection) {
 | 
				
			|||||||
        })
 | 
					        })
 | 
				
			||||||
        .then(() => {
 | 
					        .then(() => {
 | 
				
			||||||
          console.info(
 | 
					          console.info(
 | 
				
			||||||
            `😊😊😊 Successfully deployed [${envarDeploy.fromPath}] to [${connection.repo}#${connection.branch}] 😊😊😊`
 | 
					            new Date(),
 | 
				
			||||||
 | 
					            `✅✅✅ Successfully deployed [${envarDeploy.fromPath}] to [${connection.repo}#${connection.branch}] ✅✅✅`
 | 
				
			||||||
          )
 | 
					          )
 | 
				
			||||||
          if (connection.url) {
 | 
					          if (connection.url) {
 | 
				
			||||||
            console.info(`😊😊😊 ${connection.url} 😊😊😊`)
 | 
					            console.info(`😊😊😊 ${connection.url} 😊😊😊`)
 | 
				
			||||||
@ -378,7 +382,8 @@ function deployToGit (connection) {
 | 
				
			|||||||
        })
 | 
					        })
 | 
				
			||||||
        .catch(err => {
 | 
					        .catch(err => {
 | 
				
			||||||
          console.error(
 | 
					          console.error(
 | 
				
			||||||
            `🤷♀️🤷♀️🤷♀️ Failed deploy [${envarDeploy.fromPath}] to [${connection.repo}#${connection.branch}] 🤷♀️🤷♀️🤷♀️`
 | 
					            new Date(),
 | 
				
			||||||
 | 
					            `❌❌❌ Failed deploy [${envarDeploy.fromPath}] to [${connection.repo}#${connection.branch}] ❌❌❌`
 | 
				
			||||||
          )
 | 
					          )
 | 
				
			||||||
          process.exit(1)
 | 
					          process.exit(1)
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user