eeg_nest/deploy.sh

17 lines
387 B
Bash
Raw Normal View History

2023-05-09 16:55:26 +00:00
# TO BE RUN IN LOCAL MACHINE, REMOTE CANNOT BUILD
2023-05-09 15:56:41 +00:00
# Install dependencies
2023-05-09 16:55:26 +00:00
pnpm i
2023-05-09 15:56:41 +00:00
# Build Nestjs
pnpm build
# Build JSX files
node ./esbuild-prod.js
# Build hydration script
node ./esbuild-client-prod.js
# Build tailwind
./node_modules/.bin/tailwindcss -i static/tailwind.css -o ./static/styles.css --minify
2023-05-09 16:55:26 +00:00
# Send to remote
scp -r /home/mario/carpeta usuario@dominio.com:/home/usuario