Skip to content

Commit

Permalink
adjusted README.md to be more complete/precise
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Mar 7, 2024
1 parent a5e0122 commit c029efc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Clone the repository:
```bash
cd /var/www/localhost/htdocs/
git clone https://github.com/dreammall-earth/dreammall.earth.git
cd dreammall.earth
```

Configure nginx:
Expand All @@ -62,13 +63,18 @@ cp -f deployment/nginx/default.conf /etc/nginx/http.d/default.conf
# adjust the nginx config accordingly
vi /etc/nginx/http.d/default.conf
# note: replace log paths according to your installation directory
service nginx restart
```

Create Database User:
```bash
mysql
```
```sql
CREATE USER 'dreammall'@'localhost' IDENTIFIED BY 'SECRET';
GRANT ALL PRIVILEGES ON * . * TO 'dreammall'@'localhost';
FLUSH PRIVILEGES;
exit
```

Configure database connection:
Expand All @@ -83,7 +89,7 @@ Configure backend connection:
```bash
cp presenter/.env.dist presenter/.env
# adjust the .env config as needed
vi backend/.env
vi presenter/.env
# PUBLIC_ENV__ENDPOINTS__GRAPHQL_URI=http://localhost/api

## Deploy the project
Expand Down Expand Up @@ -127,8 +133,8 @@ vi /etc/init.d/webhook
chmod +x /etc/init.d/webhook
# start the webhook service
service webhook start
rc-update add webhook boot
service webhook start
```

In github configure a webhook pointing to the correct url with the following setting:
Expand Down

0 comments on commit c029efc

Please sign in to comment.