Skip to content

Instantly share code, notes, and snippets.

@chrisvanpatten
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvanpatten/d26cd540668216553490 to your computer and use it in GitHub Desktop.
Save chrisvanpatten/d26cd540668216553490 to your computer and use it in GitHub Desktop.
Automatically create a new wpframe project
#!/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