v1.0.6 (#30)
Features:
- Rust support 🦀 (Thanks to @pepoviola)
- Add a default rewrite rule to PHP apps (to index.php)
- Able to control upgrades in a straightforward way
Fixes:
- Improved upgrade scripts
- Simplified prechecks before deployment
- Fixed path deployments
- Fixed already defined apps redirections
- Better error handling - still needs a lot of improvement here!
			
			
This commit is contained in:
		@@ -3,10 +3,10 @@ const { saveServerLog } = require('../../../libs/logging')
 | 
			
		||||
 | 
			
		||||
module.exports = async function (fastify) {
 | 
			
		||||
  fastify.get('/', async (request, reply) => {
 | 
			
		||||
    const upgradeP1 = await execShellAsync('bash ./install.sh upgrade-phase-1')
 | 
			
		||||
    const upgradeP1 = await execShellAsync('bash -c "$(curl -fsSL https://get.coollabs.io/coolify/upgrade-p1.sh)"')
 | 
			
		||||
    await saveServerLog({ event: upgradeP1, type: 'UPGRADE-P-1' })
 | 
			
		||||
    reply.code(200).send('I\'m trying, okay?')
 | 
			
		||||
    const upgradeP2 = await execShellAsync('bash ./install.sh upgrade-phase-2')
 | 
			
		||||
    const upgradeP2 = await execShellAsync('docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -u root coolify bash -c "$(curl -fsSL https://get.coollabs.io/coolify/upgrade-p2.sh)"')
 | 
			
		||||
    await saveServerLog({ event: upgradeP2, type: 'UPGRADE-P-2' })
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user