File: README.md

package info (click to toggle)
tdiary 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 2
file content (28 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Docker image for tdiary development

Your editor is vscode? See bottom of this document.

## how to build an image

```
% docker build -t tdiary-devel .devcontainer
```

## how to run in the Docker

```
% docker run -v $(pwd):/workspace -p 9292:9292 -it --rm tdiary-devel
```

or debugging `contrib` in the parent directory:

```
% docker run -v $(pwd):/usr/src/app -v $(pwd)/../contrib:/usr/src/contrib -p 9292:9292 -it --rm tdiary-devel
```

## develoment on vscode remote-container

1. Open the folder of this repository by Remte-Container Extention, then starting build a image automatically.
2. Only at first, run `.devcontainer/setup-app.sh` for making `tdiary.conf` and `.htpasswd`.
3. Open Debug (`Ctrl + Shift + D`) and start "Debug tDiary".
4. Open [`http://localhost:9292`](http://localhost:9292) in your browser.