Created
May 19, 2024 14:43
-
-
Save BrunoMoreno/d7f67098fea8816c46fd08df7d075f37 to your computer and use it in GitHub Desktop.
Flask sample dev server bash file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PATH="$HOME/.local/bin:$PATH" | |
poetry install | |
source .venv/bin/activate | |
if ! grep -q "$PATH" /home/user/.bashrc; then | |
echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/user/.bashrc | |
fi | |
python -m flask --app src/main run -p $PORT --debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment