summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-01-23 09:26:42 +0300
committerAndrew Dolgov <[email protected]>2020-01-23 09:26:42 +0300
commitf64a364c5719b278a285e8f3ebc85c986a9e37ef (patch)
treee03da4f197f3e8886bff13b19cc6371469e0e4d7 /README.md
parenta298797c61be0324370d3790ec56a26cbec2e244 (diff)
update README
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/README.md b/README.md
index f81fdb2..b3c932d 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Installation
Always use latest Git code from master branch. Ignore the releases page, it doesn't mean anything.
-```
+```sh
git clone https://git.tt-rss.org/fox/the-epube.git the-epube
```
@@ -28,7 +28,7 @@ it is recommended to set ``SCRATCH_DB`` to a secure random value (i.e. ``db/long
or put it outside of scope accessible by your http server. Alternatively, you can simply block access
to ``db``:
-```
+```nginx
location /the-epube/db {
deny all;
}
@@ -36,12 +36,16 @@ location /the-epube/db {
1. Initialize scratch.db
- <pre>sqlite3 db/scratch.db &lt; schema.sql</pre>
+```sh
+sqlite3 db/scratch.db < schema.sql
+```
2. Ensure both <code>scratch.db</code> and its containing folder (i.e. <code>db/</code>) are writable by the
application, normally this means chown-ing them as <code>www-data</code> or whatever user your httpd is running under.
- <pre>chown www-data db/ db/scratch.db</pre>
+```sh
+chown www-data db/ db/scratch.db
+```
3. Copy <code>config.php-dist</code> to <code>config.php</code> and edit path to Calibre, etc.