Last active
January 10, 2020 20:23
-
-
Save vanessa/ff34f758da93f53cb9ac19e62558b0da to your computer and use it in GitHub Desktop.
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 | |
# Archive the boilerplate | |
git archive -o boilerplate.zip HEAD | |
echo "Created new file named boilerplate.zip" | |
# Go back and create a new project using the archived version | |
cd .. | |
django-admin startproject test_boilerplate \ | |
--extension py,yml,json \ | |
--name Procfile,README.md,.env.example \ | |
--template=django-react-boilerplate/boilerplate.zip | |
echo "Started project called $PROJECT_NAME" | |
# Delete it and change into the boilerplate folder | |
rm django-react-boilerplate/boilerplate.zip | |
echo "Removed boilerplate.zip" | |
cd test_boilerplate | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment