Skip to content

Instantly share code, notes, and snippets.

@BrunoMoreno
Created May 19, 2024 14:43
Show Gist options
  • Save BrunoMoreno/d7f67098fea8816c46fd08df7d075f37 to your computer and use it in GitHub Desktop.
Save BrunoMoreno/d7f67098fea8816c46fd08df7d075f37 to your computer and use it in GitHub Desktop.
Flask sample dev server bash file
#!/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