Install the last WordPress version and dependencies with Bash and Composer help.
- wordpress
- advanced-custom-fields/advanced-custom-fields-pro
$ 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
Open public/composer.json and edit your dependencies. Run the setup again.
$ ./setup.sh
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;
}
}