Created
February 6, 2015 15:11
-
-
Save greatghoul/6cc39bdf530c4f29c166 to your computer and use it in GitHub Desktop.
SAE Python Webapp Makefile
This file contains 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/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