Skip to content

Using a modern workflow approach for setting up Wordpress projects, using Composer and Grunt

Notifications You must be signed in to change notification settings

unclemimo/wpstartingpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 WP starting pack v1.0

This script offers a modern workflow to manage Wordpress installation and setup very seamsly. Through a user prompt in the command line you can:

In 2 minutes, you will have a fresh Wordpress installation, with a lot of security and performance tweaks, plugins and more.

alt text

👽 Where's the magic?

It manages Wordpress installation with Composer. Set up is done with WP-CLI and BASH scripting.

WP starting pack is an internal project of Atias Web, a web design and development company. It hasn't been developed from scratch, but by putting together many techinques and methods.

We want to make of it a maintainable and stable alternative for launching fresh and highly top-notch WP install.

Furthermore, we have GIT and Continous Integration in mind, so whoever in the team can build up and recreate the project in any devolopment enviroment.

✏️ System requeriments:

Before getting started, make sure you have installed, up and running:

It has been tested on Mac OS. It should works on Linux systems as well.

🏃 Getting started

1. In terminal, go to the project folder and type (as root, or using sudo):

$ composer install
$ chmod +x wpconfigure.sh
$ ./wpconfigure.sh

✋ To do:

  • Configure multi-enviroment through the command prompt setup (https://github.com/studio24/wordpress-multi-env-config or similar).
  • Generate salt keys in wp-config files.
  • Custom underscore Wordpress theme.
  • WP core as a GIT submodule.
  • Random generate a random WP password (and copy it to clipboard).
  • Handle Wordpress download and installation with WP CLI instead of Composer.

⁉️ Reported issues

"env: mysql: No such file or directory" error: https://stackoverflow.com/questions/44440064/env-mysql-no-such-file-or-directory-after-wp-import#44856936

"Unable to connect to MySQL server": MAMP or local server not running (yeah, this happens) 😅.

Error: Error establishing a database connection. This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost: https://make.wordpress.org/cli/handbook/installing/#using-a-custom-php-binary and wp-cli/wp-cli#2662

📚 References

  1. https://github.com/micahblu/wp-launchpad
  2. http://roots.io/using-composer-with-wordpress/
  3. https://deliciousbrains.com/how-why-install-wordpress-core-subdirectory/

About

Using a modern workflow approach for setting up Wordpress projects, using Composer and Grunt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages