Skip to content

Commit 36b7bee

Browse files
committed
Better local deployment steps
1 parent facb945 commit 36b7bee

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ installation.These variables are mandatory.
1414
- Run `docker-compose -f docker-compose.yml -f docker-compose.dev.yml up` to run Vanilla Forums
1515
- The Vanilla Forums will be available at `http://<your_docker_machine_ip>` by default
1616

17+
## Local Deployment with local mysql
18+
- Create `vanilla.env` and copy the contents of `sample.vanilla.env` into `vanilla.env`. Configure parameters.
19+
- Create `mysql.env` and copy the contents of `sample.mysql.env` into `mysql.env`. Configure parameters.
20+
`MYSQL_DATABASE` and `MYSQL_ROOT_PASSWORD` might be changed. You need to use these values during Vanilla Forums
21+
installation.These variables are mandatory.
22+
`MYSQL_ROOT_PASSWORD` specifies the password that will be set for the MySQL root superuser account.
23+
- Make sure `MYSQL_HOST` is set to `mysql-local` in both `vanilla.env` and `mysql.env`
24+
- Go to file `config/vanilla/config.php` and change the parameter `$Configuration['Garden']['Installed']` to `false` as shown below
25+
```
26+
$Configuration['Garden']['Installed'] = false;
27+
```
28+
- Run `docker-compose -f docker-compose.yml -f docker-compose.local.yml build --build-arg BRANCH=develop` to build the image
29+
- Run `docker-compose -f docker-compose.yml -f docker-compose.local.yml up` to run Vanilla Forums
30+
- After it is done, go to `localhost` in your browser
31+
- You should be able to see the page similar to below
32+
![Vanilla Forums Wizard](./docs/images/setup_wizard.png)
33+
- Follow the instructions in [Setup Vanilla Forums](./docs/SetupVanillaForums.md) to complete installation.
34+
1735
## Docker Deployment with existing MySql
1836
- You need to know how connect to MySQL Database:
1937
- **Database Host**

0 commit comments

Comments
 (0)