stacker.news/.platform/hooks/predeploy/00_build.sh

22 lines
362 B
Bash
Raw Normal View History

2021-06-04 22:10:32 +00:00
#!/usr/bin/env bash
2021-06-06 14:09:01 +00:00
echo primsa migrate
npm run migrate
2021-06-06 00:13:07 +00:00
echo build with npm
npm run build
2021-06-05 23:58:39 +00:00
# echo installing yarn
# sudo npm install yarn -g
2021-06-04 22:10:32 +00:00
2021-06-05 23:58:39 +00:00
# echo link yarn $(npm bin --global) $(sudo npm bin --global)
# sudo ln -fs "$(npm bin --global)"/yarn /usr/bin/yarn
2021-06-04 22:10:32 +00:00
2021-06-05 23:58:39 +00:00
# echo install
# yarn install
2021-06-04 23:33:39 +00:00
2021-06-05 23:58:39 +00:00
# echo gen primsa client
# prisma generate
2021-06-04 22:32:16 +00:00
2021-06-05 23:58:39 +00:00
# echo build
# yarn build