forked from syntaxbullet/aurorabot
feat: Store update restart context in the deployment directory and configure Docker to use the default bun user.
This commit is contained in:
@@ -213,6 +213,18 @@ async function handleDeploy(interaction: any) {
|
||||
});
|
||||
|
||||
if (result.success) {
|
||||
// Save restart context so we can notify on startup
|
||||
await UpdateService.prepareRestartContext({
|
||||
channelId: interaction.channelId,
|
||||
userId: interaction.user.id,
|
||||
timestamp: Date.now(),
|
||||
runMigrations: true, // Always check migrations on deploy
|
||||
installDependencies: false, // Handled by Docker build
|
||||
buildWebAssets: false, // Handled by Docker build
|
||||
previousCommit: result.previousCommit,
|
||||
newCommit: result.newCommit
|
||||
});
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [getDeploySuccessEmbed(
|
||||
result.previousCommit,
|
||||
|
||||
Reference in New Issue
Block a user