fix: 分离日常发布与首次初始化(09-09-existing-deploy-seed-separation)
这个提交包含在:
@@ -109,7 +109,8 @@ function main() {
|
||||
if (LIFECYCLE.has(call.operation)) {
|
||||
if (call.operation === 'up' && call.targets.includes('db')) fs.writeFileSync(path.join(root, 'db-started'), '1');
|
||||
if (call.operation === 'run') {
|
||||
if (call.targets.join() !== 'init' || !call.containerArgs.join(' ').includes('npm run prisma:migrate:deploy && npm run seed:config && npm run seed:trialrun')) {
|
||||
if (call.targets.join() !== 'init' || call.containerArgs.join(' ') !== '-lc cd /app/server && npm run deploy:init' ||
|
||||
!args.includes('DEPLOY_DATA_MODE=' + process.env.DEPLOY_DATA_MODE)) {
|
||||
throw new Error('unexpected_init_command');
|
||||
}
|
||||
if (config.initFails) process.exit(23);
|
||||
|
||||
在新工单中引用
屏蔽一个用户