Skip to content

Instantly share code, notes, and snippets.

@vanessa
Last active January 10, 2020 20:23
Show Gist options
  • Save vanessa/ff34f758da93f53cb9ac19e62558b0da to your computer and use it in GitHub Desktop.
Save vanessa/ff34f758da93f53cb9ac19e62558b0da to your computer and use it in GitHub Desktop.
#!/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