How to use:
npm install
this package.- Edit
config.json
to match desired parameters.themeName
is the name of your theme. Don't use spaces - useinterrogate2016
instead ofInterrogate 2016
, for example.localRoot
is your local MAMP site directory. See MAMP > Web Server > Document Root.localhost
is the name of your machine's localhost, along with the port number:localhost:81
orlocalhost:8888
, for example. See MAMP > Ports > Apache Port.themeTemplateUrl
is the location of a .zip file containing the WP theme template to use.dbUser
is the MySQL username of an account with read/write access to your local databases.dbPassword
is the password for the above account.dbName
is the name of the database you'll be creating for the new Wordpress install.dbPort
is the port number of the local MySQL server. See MAMP > Ports > MySQL Port.debugMode
is a boolean indicating whether or not your WP installation will start in WP_DEBUG mode.gitInit
is a boolean indicating whether or not the script will automatically rungit init
at the new theme's location.openInSourcetree
is a boolean indicating whether or not the script will automatically open the new repo in SourceTree (bypassed ifgitInit == false
).
- Navigate to the containing directory in Terminal, then use
node app
to download, parse, generate, etc. all files in the target location. - You'll be directed to the appropriate wp-config page when the downloads and setup complete. Enter the given information there to finish the WP install.
- Finish the WP install like normal and that's it! You've got a functioning local WP installation at
localhost:[port]/[themeName]
, including the new database andwp-content/themes/[themeName]
theme downloaded from the Funkhaus style guide.
- Set up DeployHQ automatically
- Create copy of existing site (pull theme from live site, export existing database, etc.)