Skip to content

Commit

Permalink
use script for task
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwolf committed Nov 17, 2023
1 parent 6e15f9e commit 3235d41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pg-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ mkdir -p gen/pg/db
# Works only the first time until https://github.com/cap-js/cds-dbs/issues/100 is fixed
# cp -r db/data gen/pg/db
cds compile '*' > gen/pg/db/csn.json
cp pg-task.sh gen/pg/task.sh
cp pg-package.json gen/pg/package.json
cp package-lock.json gen/pg/package-lock.json
4 changes: 4 additions & 0 deletions pg-task.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo "VCAP_SERVICES":
echo $VCAP_SERVICES
cds env requires.db --for production
npm start

0 comments on commit 3235d41

Please sign in to comment.