Last active
August 29, 2015 14:04
-
-
Save chrisvanpatten/d26cd540668216553490 to your computer and use it in GitHub Desktop.
Automatically create a new wpframe project
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
#!/usr/bin/env bash | |
# Create a vpmframe-wp project | |
mkdir $1 | |
cd $1 | |
git init | |
touch vpmframe-wp | |
git add vpmframe-wp | |
git commit -m 'Initial commit' | |
git remote add vpmframe-wp git@github.com:vanpattenmedia/wpframe.git | |
git fetch vpmframe-wp | |
git merge --squash vpmframe-wp/master | |
rm vpmframe-wp | |
mv config/database.example.yml config/database.yml | |
echo '<?php' > wp-salts.php && curl https://api.wordpress.org/secret-key/1.1/salt >> config/wp-salts.php | |
git remote rm vpmframe-wp | |
git add -A . | |
git commit --no-edit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment