Skip to content

Install WordPress and your favourite dependencies with Bash and Composer help.

Notifications You must be signed in to change notification settings

alexmigf/wp-env

Repository files navigation

WordPress Environment Setup

Install the last WordPress version and dependencies with Bash and Composer help.

Project Dependency

  • wordpress

WordPress Dependencies

  • advanced-custom-fields/advanced-custom-fields-pro

Installation

$ cd project-directory
$ git clone [email protected]:alexmigf/wp-env.git

Open wp-dependencies-bk.php and add your preferred WordPress Dependencies.

Open .env and add your ACF Pro Key (ACF Key is required for the installation) and other project settings like database and environment (production or development).

$ cd wp-env
$ chmod +x setup.sh
$ ./setup.sh

Update Dependencies

Open public/composer.json and edit your dependencies. Run the setup again.

$ ./setup.sh

NGINX Configuration

server {
  listen 80;
  server_name example.com;

  root /srv/www/example.com/public;
  index index.php index.htm index.html;

  location ~* /wp-content/uploads/.*.php$ {
    deny all;
  }

  location / {
    try_files $uri $uri/ /index.php?$args;
  }
}

About

Install WordPress and your favourite dependencies with Bash and Composer help.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published