- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| """ | |
| This fabric script automates the creation of a virtual environment and a Django | |
| project. The result will be virtual environtment with the name of the project. | |
| The folder namer where the project code will be placed is specified in | |
| SOURCE_DIRECTORY_NAME, a static root folder will be created and settings.py | |
| will be updated. | |
| """ | |
| try: | |
| from fabric.api import env, run, local | |
| from fabric.context_managers import lcd, prefix |
| #!/bin/bash | |
| if [ $# -ne 2 ] | |
| then | |
| echo "Error in $0 - Invalid Argument Count" | |
| echo "Syntax: $0 project_name desidered_heroku_name" | |
| exit | |
| fi | |
| project_name=$1 |