Wordpress template project with roots/sage
In the root of the project there is a file called .env
, which has all the important information in global variables of the wp-config.php
file.
Follow the instructions before starting to develop on the project:
- Install Docker Compose following the instructions in https://docs.docker.com/compose/install
Configure the project by following the steps:
-
Create a file called
auth.json
and add the snippet below, replacing it with a token from github:{ "github-oauth": { "github.com": "seu_token_aqui" } }
-
Set the
PROJECT_NAME
variable on.env
file -
Set the
WP_DEFAULT_THEME
andTHEME_SLUG
variable on.env
file -
Set
SECRET KEYS
variables on.env
file, getting from secret keys -
Run the following command:
docker-compose up -d
- Site: http://localhost/
- Dashboard: http://localhost/wp-admin/
- Site with hot reload: http://localhost:3000/
- Browsersync dashboard: http://localhost:3001/
- phpMyAdmin: http://localhost:8080/
-
- Login: root
-
- Password: root