Skip to content

Instantly share code, notes, and snippets.

@greatghoul
Created February 6, 2015 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greatghoul/6cc39bdf530c4f29c166 to your computer and use it in GitHub Desktop.
Save greatghoul/6cc39bdf530c4f29c166 to your computer and use it in GitHub Desktop.
SAE Python Webapp Makefile
#!/bin/bash
PKG_FILE=site/site-packages.zip
install:
@echo '-- Install development dependencies'
pip install -r requirements-dev.txt
@echo '-- Install runtime dependencies'
saecloud install -r requirements.txt
@echo '-- Package dependencies to site/site-packages.zip'
rm -f $(PKG_FILE)
cd site-packages && zip -r ../$(PKG_FILE) . && cd ..
deploy:
saecloud deploy site
server:
cd site && dev_server.py⏎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment