Skip to content

Instantly share code, notes, and snippets.

@dipu-bd
Last active December 14, 2020 17:01
Show Gist options
  • Save dipu-bd/1183ca6a6f9968853e17bcc7820d895d to your computer and use it in GitHub Desktop.
Save dipu-bd/1183ca6a6f9968853e17bcc7820d895d to your computer and use it in GitHub Desktop.
Automate the deployment of a Vue CLI single page application. Related: https://gist.github.com/dipu-bd/043d1dc686ef6c95fbca8c39a2954a68
#!/bin/sh
pwd
rm -rf dist build venv
yarn
yarn build
python3 -m venv venv
./venv/bin/python -m pip install -U pip
./venv/bin/python -m pip install pyinstaller
mkdir -p build
./venv/bin/pyinstaller \
--name kyc-portal \
--onefile \
--clean \
--noconfirm \
--distpath build/bin \
--specpath build/spec \
--workpath build/work \
server.py
mv dist build
rm -rf venv build/spec build/work
mkdir -p dist
mv build dist/kyc-portal
cd dist
zip -r kyc-portal.zip kyc-portal
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment