forked from blallo/Feedati
more doc on how to setup
This commit is contained in:
parent
2dfb698e80
commit
65f39a4595
2 changed files with 34 additions and 7 deletions
16
README.md
16
README.md
|
@ -3,7 +3,7 @@ FEEDATI
|
||||||
|
|
||||||
La nuova frontiera dello smanettamento con gli RSS
|
La nuova frontiera dello smanettamento con gli RSS
|
||||||
|
|
||||||
## Installami
|
## Install
|
||||||
|
|
||||||
Serve installare le seguenti cosucce:
|
Serve installare le seguenti cosucce:
|
||||||
|
|
||||||
|
@ -12,7 +12,19 @@ Serve installare le seguenti cosucce:
|
||||||
- `go get 'github.com/betalo-sweden/await'` (serve Go >= 1.8)
|
- `go get 'github.com/betalo-sweden/await'` (serve Go >= 1.8)
|
||||||
- [doit](http://pydoit.org/) (`pip3 install doit==0.31` or `apt-get install python3-doit`)
|
- [doit](http://pydoit.org/) (`pip3 install doit==0.31` or `apt-get install python3-doit`)
|
||||||
|
|
||||||
## Lanciare
|
## Some more setup
|
||||||
|
|
||||||
|
You need to resolve localhost as `feedati-fe`. Run:
|
||||||
|
|
||||||
|
echo 127.0.0.1 feedati-fe | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
|
## Run
|
||||||
|
|
||||||
Running `doit` is enough.
|
Running `doit` is enough.
|
||||||
It will build images, configure them, then run everything.
|
It will build images, configure them, then run everything.
|
||||||
|
|
||||||
|
## Use
|
||||||
|
|
||||||
|
Point your browser to `http://feedati-fe/tt-rss/`.
|
||||||
|
|
||||||
|
NO, `http://localhost/` won't work.
|
||||||
|
|
|
@ -1,22 +1,37 @@
|
||||||
|
Don't even read this if you haven't got README.md right
|
||||||
|
|
||||||
|
## Things to setup
|
||||||
|
|
||||||
|
If you want to make some contribution to the project, please take some minute setting things up.
|
||||||
|
|
||||||
|
Editing file that are bind-mounted over a container is not totally trivial; if you use vim, please
|
||||||
|
`set modeline backupcopy` in your vimrc. This will make your editing a bit more pleasant and avoid [known
|
||||||
|
issues](https://github.com/moby/moby/issues/15793). If you don't use vim, check that your editor doesn't
|
||||||
|
change inode to editing file, or editing files live from host to container will give you headache.
|
||||||
|
|
||||||
|
Please also see [GIT.md](GIT.md) for tips on setting git.
|
||||||
|
|
||||||
|
## Coding, running, coding
|
||||||
|
|
||||||
The instructions in README.md are fine when you only want to run. However, when developing, you might need to
|
The instructions in README.md are fine when you only want to run. However, when developing, you might need to
|
||||||
know some more tricks.
|
know some more tricks.
|
||||||
|
|
||||||
The goal of our build manager (`dodo.py`) is to make a single call to `doit`, without arguments, always a sane
|
The goal of our build manager (`dodo.py`) is to make a single call to `doit`, without arguments, always a sane
|
||||||
and correct choice. However that could not always be the case.
|
and correct choice. However that could not always be the case.
|
||||||
|
|
||||||
Let's organize our explanation into "iteration loops": you are typically developing on some aspect of it, and
|
Let's organize our explanation into "iterations": you are typically developing on some aspect of it, and
|
||||||
not on the entire setup. Based on this, you'll need to do different things.
|
not on the entire setup. Based on this, you'll need to do different things.
|
||||||
|
|
||||||
## Loops
|
### Loops
|
||||||
|
|
||||||
### Hacking code on tt-rss or rss-bridge
|
#### Hacking code on tt-rss or rss-bridge
|
||||||
|
|
||||||
If you are changing PHP code, well, this is the easiest part.
|
If you are changing PHP code, well, this is the easiest part.
|
||||||
Run `doit`, and you should have everything running, and logs showing up.
|
Run `doit`, and you should have everything running, and logs showing up.
|
||||||
Then, with your favourite editor, edit the PHP files you prefer. You can then refresh what you want in the
|
Then, with your favourite editor, edit the PHP files you prefer. You can then refresh what you want in the
|
||||||
browser, and everything should be automatically changing. No other action required!
|
browser, and everything should be automatically changing. No other action required!
|
||||||
|
|
||||||
### Changing nginx configuration
|
#### Changing nginx configuration
|
||||||
|
|
||||||
Currently, there is no way to reload nginx, even though it should not be impossible, theoretically, to do it.
|
Currently, there is no way to reload nginx, even though it should not be impossible, theoretically, to do it.
|
||||||
So edit `docker/nginx.conf` with your favourite editor then run `doit`. On the next change, give `ctrl-c` to
|
So edit `docker/nginx.conf` with your favourite editor then run `doit`. On the next change, give `ctrl-c` to
|
||||||
|
@ -24,7 +39,7 @@ So edit `docker/nginx.conf` with your favourite editor then run `doit`. On the n
|
||||||
|
|
||||||
This workflow could be improved, being currently a bit too slow for such an easy thing.
|
This workflow could be improved, being currently a bit too slow for such an easy thing.
|
||||||
|
|
||||||
### Change some docker file
|
#### Change some docker file
|
||||||
|
|
||||||
When you change the dockerfile you need to build everything again. Doit should notice this, and just running
|
When you change the dockerfile you need to build everything again. Doit should notice this, and just running
|
||||||
`doit` should build everything again. If for some reason this is not the case, `doit clean build` will clean
|
`doit` should build everything again. If for some reason this is not the case, `doit clean build` will clean
|
||||||
|
|
Reference in a new issue