Edit .onedev-buildspec.yml
This commit is contained in:
parent
ed654852cb
commit
3d9c1ce715
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
runInContainer: false
|
runInContainer: false
|
||||||
interpreter: !DefaultInterpreter
|
interpreter: !DefaultInterpreter
|
||||||
commands: |
|
commands: |
|
||||||
rsync -av --delete --exclude="node_modules" --exclude=".git" ./ /www/wwwroot/moviebox/
|
rsync -av --delete --exclude="node_modules" --exclude="config/db.sql" --exclude="drizzle" ./ /www/wwwroot/moviebox/
|
||||||
useTTY: true
|
useTTY: true
|
||||||
condition: SUCCESSFUL
|
condition: SUCCESSFUL
|
||||||
optional: false
|
optional: false
|
||||||
|
|
@ -26,6 +26,8 @@ jobs:
|
||||||
commands: |
|
commands: |
|
||||||
cd /www/wwwroot/moviebox
|
cd /www/wwwroot/moviebox
|
||||||
npm install
|
npm install
|
||||||
|
npx drizzle-kit generate
|
||||||
|
npx drizzle-kit migrate
|
||||||
useTTY: true
|
useTTY: true
|
||||||
condition: SUCCESSFUL
|
condition: SUCCESSFUL
|
||||||
optional: false
|
optional: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue