Skip to content

Commit 25a8d19

Browse files
author
dmitriy
committed
improved docs
1 parent 6c440c4 commit 25a8d19

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.env.prod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
APP_ENV=prod
33
APP_SECRET=42f011ec3a7bde0bec87364b1d967194
44
APP_DEBUG=0
5+
6+
###> doctrine/doctrine-bundle ###
7+
DATABASE_URL=mysql://root:secret@mysql:3306/symfony
8+
###< doctrine/doctrine-bundle ###
9+
10+
###> symfony/messenger ###
11+
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages
12+
###< symfony/messenger ###

readme.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,35 @@ Note: OS recommendation - Linux Ubuntu based.
2323
4. Symfony 4 LTS
2424
5. RabbitMQ 3
2525

26+
## Setting up PROD environment
27+
1.Clone this repository from GitHub.
28+
29+
2.Edit docker-compose-prod.yml and set necessary user/password for MySQL and RabbitMQ.
30+
31+
Note: Delete var/mysql-data folder if it is exist.
32+
33+
3.Edit env.prod and set necessary user/password for MySQL and RabbitMQ.
34+
35+
4.Build, start and install the docker images from your terminal:
36+
```bash
37+
docker-compose -f docker-compose-prod.yml build
38+
make start-prod
39+
make generate-jwt-keys
40+
```
41+
42+
5.Make sure that you have installed migrations / created roles and groups / messenger transports:
43+
```bash
44+
make migrate-no-test
45+
make create-roles-groups
46+
make migrate-cron-jobs
47+
make messenger-setup-transports
48+
```
49+
2650
## Setting up STAGING environment
2751
1.Clone this repository from GitHub.
2852

53+
Note: Delete var/mysql-data folder if it is exist.
54+
2955
2.Build, start and install the docker images from your terminal:
3056
```bash
3157
docker-compose -f docker-compose-staging.yml build
@@ -50,6 +76,8 @@ Note 1: You can get unique secret key for example [here](http://nux.net/secret).
5076

5177
Note 2: Do not use .env.local.php on dev and test environment (delete it if exist).
5278

79+
Note 3: Delete var/mysql-data folder if it is exist.
80+
5381
3.Add domain to local 'hosts' file:
5482
```bash
5583
127.0.0.1 localhost
@@ -91,7 +119,7 @@ After application will start (`make start`) and in order to get shell access ins
91119
```bash
92120
make ssh
93121
```
94-
Note 1: Please use next make commands in order to enter in other containers: `make ssh-nginx`, `make ssh-supervisord`, `make ssh-mysql`.
122+
Note 1: Please use next make commands in order to enter in other containers: `make ssh-nginx`, `make ssh-supervisord`, `make ssh-mysql`, `make ssh-rabbitmq`.
95123

96124
Note 2: Please use `exit` command in order to return from container's shell to local shell.
97125

0 commit comments

Comments
 (0)