Skip to content

Commit 0f98d18

Browse files
committed
Updates on the deployment procedure
1 parent 29ae99c commit 0f98d18

8 files changed

Lines changed: 34 additions & 119 deletions

File tree

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Additional Documentation
77
------------------------
88

99
- [API][docs-api]
10-
- [Deployment][docs-deployment]
1110
- [Administration][docs-admin]
1211

1312
Database Configuration
@@ -108,6 +107,35 @@ $ docker push codingteam/loglist:$LOGLIST_VERSION
108107
$ docker push codingteam/loglist:latest
109108
```
110109

110+
Deployment
111+
----------
112+
113+
To install the application from Docker, run the following command:
114+
115+
```console
116+
$ docker run -d --restart unless-stopped --name $NAME -v $CONFIG:/app/conf/application.conf --env-file $ENV_FILE --net host codingteam/loglist:$VERSION
117+
```
118+
119+
Where
120+
- `$NAME` is the container name
121+
- `$CONFIG` is the **absolute** path to the configuration file
122+
- `$VERSION` is the version you want to deploy, or `latest` for the latest
123+
available one
124+
- `$ENF_FILE` is the path to the env file (see `docs/loglist.env` for example)
125+
126+
For example, a production server may use the following settings (note this
127+
command uses the Bash syntax; adapt for your shell if necessary):
128+
129+
```bash
130+
NAME=loglist
131+
CONFIG=/opt/loglist/conf/application.conf
132+
VERSION=latest
133+
ENV_FILE=/opt/loglist/conf/loglist.env
134+
docker pull codingteam/loglist:$VERSION
135+
docker rm -f $NAME
136+
docker run -d --restart unless-stopped --name $NAME -v $CONFIG:/app/conf/application.conf --env-file $ENV_FILE --net host codingteam/loglist:$VERSION
137+
```
138+
111139
License
112140
-------
113141

@@ -121,7 +149,6 @@ corresponding site section for further details.
121149

122150
[docs-admin]: docs/Admin.md
123151
[docs-api]: docs/API.md
124-
[docs-deployment]: docs/Deployment.md
125152

126153
[docker-hub]: https://hub.docker.com/r/codingteam/loglist
127154
[loglist]: https://www.loglist.xyz/

RELEASES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ This is the first release after Play framework update.
77

88
Remember to update the configuration file (`application.conf`):
99
- `evolutions.autocommit` is now `play.evolutions.autocommit`
10+
- `applyEvolutions.default` is now `play.evolutions.db.default.autoApply`
1011
- `application.secret` is now `play.http.secret.key`
1112
- `application.langs` is now `play.i18n.langs` (and it should be a list rather
1213
than a single string)
14+
- there's a new required line: `play.modules.enabled += "scalikejdbc.PlayModule"`
15+
16+
- `logger.*` parameters has been migrated to `logback.xml`, remove them from
17+
your config

docs/Deployment.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
File renamed without changes.

docs/loglist.service

Lines changed: 0 additions & 12 deletions
This file was deleted.

scripts/Jenkinsfile.deploy

Lines changed: 0 additions & 55 deletions
This file was deleted.

scripts/start.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/stop.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)