diff options
24 files changed, 325 insertions, 125 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 00000000..1c6c0d53 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,43 @@ | |||
1 | TMP_FOLDER=/tmp | ||
2 | RELEASE_FOLDER=wllbg-release | ||
3 | |||
4 | ifndef ENV | ||
5 | ENV=prod | ||
6 | endif | ||
7 | |||
8 | help: ## Display this help menu | ||
9 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
10 | |||
11 | clean: ## Clear the application cache | ||
12 | @rm -rf var/cache/* | ||
13 | |||
14 | install: ## Install wallabag with the latest version | ||
15 | @sh scripts/install.sh $(ENV) | ||
16 | |||
17 | update: ## Update the wallabag installation to the latest version | ||
18 | @sh scripts/update.sh $(ENV) | ||
19 | |||
20 | run: ## Run the wallabag built-in server | ||
21 | @php bin/console server:run --env=$(ENV) | ||
22 | |||
23 | build: ## Run grunt | ||
24 | @grunt | ||
25 | |||
26 | test: ## Launch wallabag testsuite | ||
27 | @if [ ! -d "vendor/phpunit" ]; then composer install; fi | ||
28 | @ant prepare && vendor/phpunit/phpunit/phpunit -v | ||
29 | |||
30 | release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). | ||
31 | ifndef VERSION | ||
32 | $(error VERSION is not set) | ||
33 | endif | ||
34 | @sh scripts/release.sh $(VERSION) $(TMP_FOLDER) $(RELEASE_FOLDER) $(ENV) | ||
35 | |||
36 | travis: ## Make some stuff for Travis-CI | ||
37 | |||
38 | deploy: ## Deploy wallabag | ||
39 | @bundle exec cap staging deploy | ||
40 | |||
41 | .PHONY: help clean install update build test release travis deploy | ||
42 | |||
43 | .DEFAULT_GOAL := install | ||
@@ -6,23 +6,22 @@ | |||
6 | wallabag is a self hostable application allowing you to not miss any content anymore. | 6 | wallabag is a self hostable application allowing you to not miss any content anymore. |
7 | Click, save and read it when you can. It extracts content so that you can read it when you have time. | 7 | Click, save and read it when you can. It extracts content so that you can read it when you have time. |
8 | 8 | ||
9 | More informations on our website: [wallabag.org](https://wallabag.org) | 9 | More information on our website: [wallabag.org](https://wallabag.org). |
10 | |||
11 | ![wallabag logo](https://raw.githubusercontent.com/wallabag/logo/master/_default/typo-horizontal/png/sm/logo-typo-horizontal-black-no-bg-no-border-sm.png) | ||
10 | 12 | ||
11 | # Install wallabag | 13 | # Install wallabag |
14 | Please read [the documentation to see the wallabag requirements](http://doc.wallabag.org/en/master/user/installation.html#requirements). | ||
12 | 15 | ||
13 | If you don't have it yet, please [install composer](https://getcomposer.org/download/) or be sure to use Composer 1.2 (`composer selfupdate` can help you about that). Read [our documentation](http://doc.wallabag.org) to have more information about installation. | ||
14 | Then you can install wallabag by executing the following commands: | 16 | Then you can install wallabag by executing the following commands: |
15 | 17 | ||
16 | ``` | 18 | ``` |
17 | git clone https://github.com/wallabag/wallabag.git | 19 | git clone https://github.com/wallabag/wallabag.git |
18 | cd wallabag | 20 | cd wallabag && make install |
19 | git checkout 2.1.1 | 21 | make run |
20 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | ||
21 | php bin/console wallabag:install --env=prod | ||
22 | php bin/console server:run --env=prod | ||
23 | ``` | 22 | ``` |
24 | 23 | ||
25 | ## License | 24 | # License |
26 | Copyright © 2013-2016 Nicolas Lœuillet <nicolas@loeuillet.org> | 25 | Copyright © 2013-2016 Nicolas Lœuillet <nicolas@loeuillet.org> |
27 | This work is free. You can redistribute it and/or modify it under the | 26 | This work is free. You can redistribute it and/or modify it under the |
28 | terms of the MIT License. See the COPYING file for more details. | 27 | terms of the MIT License. See the COPYING file for more details. |
diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 359bc921..8ac9bbcd 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md | |||
@@ -1,48 +1,45 @@ | |||
1 | ## Definition | 1 | ## Definition |
2 | 2 | ||
3 | A release is mostly a git tag of http://github.com/wallabag/wallabag, following [semantic versioning](http://semver.org). | 3 | A release is mostly a git tag of http://github.com/wallabag/wallabag, following [semantic versioning](http://semver.org). |
4 | The last release at the time of writing is 2.0.0-alpha.2, from the v2 branch. | ||
5 | 4 | ||
6 | ### Steps to release | 5 | ### Steps to release |
7 | 6 | ||
8 | During this documentation, we assume the release is `release-2.0.0-beta.1`. | 7 | During this documentation, we assume the release is `$LAST_WALLABAG_RELEASE`. |
9 | 8 | ||
10 | #### Files to edit | 9 | #### Files to edit |
11 | 10 | ||
12 | - `app/config/config.yml` (`wallabag_core.version`) | 11 | - `app/config/config.yml` (`wallabag_core.version`) |
13 | - `README.md` (`composer create-project` command) | 12 | - `CHANGELOG.md` (by using this command `github_changelog_generator --no-compare-link`. [github-changelog-generator is available here](https://github.com/skywinder/github-changelog-generator)) |
14 | - `docs/en/user/installation.rst` and its translations (`composer create-project` command) | ||
15 | - `CHANGELOG.md` (by using this command `github_changelog_generator --no-compare-link --future-release "2.x.x"`. [github-changelog-generator is available here](https://github.com/skywinder/github-changelog-generator)) | ||
16 | 13 | ||
17 | #### Create release on GitHub | 14 | #### Create release on GitHub |
18 | 15 | ||
19 | - Run these commands to create the tag: | 16 | - Run these commands to create the tag: |
20 | 17 | ||
21 | ``` | 18 | ``` |
22 | git checkout v2 | 19 | git checkout master |
23 | git pull origin v2 | 20 | git pull origin master |
24 | git checkout -b release-2.0.0-beta.1 | 21 | git checkout -b release-$LAST_WALLABAG_RELEASE |
25 | SYMFONY_ENV=prod composer up --no-dev | 22 | SYMFONY_ENV=prod composer up --no-dev |
26 | git add --force composer.lock | 23 | git add --force composer.lock |
27 | git add README.md | 24 | git commit -m "Release wallabag $LAST_WALLABAG_RELEASE" |
28 | git commit -m "Release wallabag 2.0.0-beta.1" | 25 | git push origin release-$LAST_WALLABAG_RELEASE |
29 | git push origin release-2.0.0-beta.1 | ||
30 | ``` | 26 | ``` |
31 | 27 | ||
32 | - Create a new pull request with this title `DON'T MERGE Release wallabag 2.0.0-beta.1`. This pull request is used to launch builds on Travis-CI. | 28 | - Create a new pull request with this title `DON'T MERGE Release wallabag $LAST_WALLABAG_RELEASE`. This pull request is used to launch builds on Travis-CI. |
33 | - Run these commands to create the package: | 29 | - Run these command to create the package: |
34 | 30 | ||
35 | ``` | 31 | ``` |
36 | git clone git@github.com:wallabag/wallabag.git -b release-2.0.0-beta.1 release-2.0.0-beta.1 | 32 | make release master /tmp wllbg-release prod |
37 | SYMFONY_ENV=prod composer up -d=release-2.0.0-beta.1 --no-dev | ||
38 | tar czf wallabag-release-2.0.0-beta.1.tar.gz --exclude="var/*" --exclude=".git" release-2.0.0-beta.1 | ||
39 | ``` | 33 | ``` |
40 | 34 | ||
41 | - [Create the new release on GitHub](https://github.com/wallabag/wallabag/releases/new). You have to upload on this page the package. | 35 | - [Create the new release on GitHub](https://github.com/wallabag/wallabag/releases/new). You have to upload on this page the package. |
42 | - Delete the `release-2.0.0-beta.1` branch and close the pull request (**DO NOT MERGE IT**). | 36 | - Delete the `release-$LAST_WALLABAG_RELEASE` branch and close the pull request (**DO NOT MERGE IT**). |
43 | - Update the URL shortener (used on `wllbg.org` to generate links like `http://wllbg.org/latest-v2-package` or `http://wllbg.org/latest-v2`) | 37 | - Update the URL shortener (used on `wllbg.org` to generate links like `http://wllbg.org/latest-v2-package` or `http://wllbg.org/latest-v2`) |
44 | - Update [the downloads page](https://github.com/wallabag/wallabag.org/blob/master/content/pages/download.md) on the website (MD5 sum, release date) | 38 | - Update [the downloads page](https://github.com/wallabag/wallabag.org/blob/master/content/pages/download.md) on the website (MD5 sum, release date) |
45 | - Drink a beer! | 39 | - Update Dockerfile https://github.com/wallabag/docker (and create a new tag) |
40 | - Update wallabag.org website (downloads, releases and new blog post) | ||
41 | - Put the next patch version suffixed with `-dev` in `app/config/config.yml` (`wallabag_core.version`) | ||
42 | - Drink a :beer:! | ||
46 | 43 | ||
47 | ### `composer.lock` | 44 | ### `composer.lock` |
48 | A release tag must contain a `composer.lock` file. It sets which dependencies were available at the time a release was done, | 45 | A release tag must contain a `composer.lock` file. It sets which dependencies were available at the time a release was done, |
diff --git a/docs/de/developer/rabbitmq.rst b/docs/de/developer/rabbitmq.rst index 37e9984b..f81e07e3 100644 --- a/docs/de/developer/rabbitmq.rst +++ b/docs/de/developer/rabbitmq.rst | |||
@@ -46,6 +46,10 @@ Bearbeite die Datei ``parameters.yml``, um die RabbitMQ Konfiguration einzuricht | |||
46 | rabbitmq_user: guest | 46 | rabbitmq_user: guest |
47 | rabbitmq_password: guest | 47 | rabbitmq_password: guest |
48 | 48 | ||
49 | Enable RabbitMQ in wallabag | ||
50 | --------------------------- | ||
51 | |||
52 | In internal settings, in the **Import** section, enable RabbitMQ (with the value 1). | ||
49 | 53 | ||
50 | Starte den RabbitMQ Consumer | 54 | Starte den RabbitMQ Consumer |
51 | ---------------------------- | 55 | ---------------------------- |
diff --git a/docs/de/developer/redis.rst b/docs/de/developer/redis.rst index 46334cf0..57b41550 100644 --- a/docs/de/developer/redis.rst +++ b/docs/de/developer/redis.rst | |||
@@ -35,6 +35,10 @@ Bearbeite die Datei ``parameters.yml``, um die RabbitMQ Konfiguration einzuricht | |||
35 | redis_host: localhost | 35 | redis_host: localhost |
36 | redis_port: 6379 | 36 | redis_port: 6379 |
37 | 37 | ||
38 | Enable Redis in wallabag | ||
39 | ------------------------ | ||
40 | |||
41 | In internal settings, in the **Import** section, enable Redis (with the value 1). | ||
38 | 42 | ||
39 | Starte den Redis Consumer | 43 | Starte den Redis Consumer |
40 | ------------------------- | 44 | ------------------------- |
diff --git a/docs/de/developer/testsuite.rst b/docs/de/developer/testsuite.rst new file mode 100644 index 00000000..b2b16cdc --- /dev/null +++ b/docs/de/developer/testsuite.rst | |||
@@ -0,0 +1,10 @@ | |||
1 | Testsuite | ||
2 | ========= | ||
3 | |||
4 | To ensure wallabag development quality, we wrote tests with `PHPUnit <https://phpunit.de>`_. | ||
5 | |||
6 | If you contribute to the project (by translating the application, by fixing bugs or by adding a new feature), please write your own tests. | ||
7 | |||
8 | To launch wallabag testsuite, you need to install `ant <http://ant.apache.org>`_. | ||
9 | |||
10 | Then, execute this command ``make test``. | ||
diff --git a/docs/de/user/installation.rst b/docs/de/user/installation.rst index 3578dca9..0d082e41 100644 --- a/docs/de/user/installation.rst +++ b/docs/de/user/installation.rst | |||
@@ -6,6 +6,19 @@ Voraussetzungen | |||
6 | 6 | ||
7 | wallabag ist kompatibel mit PHP >= 5.5, inkl. PHP 7. | 7 | wallabag ist kompatibel mit PHP >= 5.5, inkl. PHP 7. |
8 | 8 | ||
9 | .. note:: | ||
10 | To install wallabag easily, we create a ``Makefile``, so you need to have the ``make`` tool. | ||
11 | |||
12 | wallabag nutzt eine große Anzahl an Bibliotheken, um zu funktionieren. Diese Bibliotheken müssen mit einem Tool namens Composer installiert werden. Du musst es installieren sofern du es bisher noch nicht gemacht hast. | ||
13 | |||
14 | Composer installieren: | ||
15 | |||
16 | :: | ||
17 | |||
18 | curl -s http://getcomposer.org/installer | php | ||
19 | |||
20 | Du kannst eine spezifische Anleitung `hier <https://getcomposer.org/doc/00-intro.md>`__ finden. | ||
21 | |||
9 | Du benötigst die folgenden Extensions damit wallabag funktioniert. Einige von diesen sind vielleicht schon in deiner Version von PHP aktiviert, somit musst du eventuell | 22 | Du benötigst die folgenden Extensions damit wallabag funktioniert. Einige von diesen sind vielleicht schon in deiner Version von PHP aktiviert, somit musst du eventuell |
10 | nicht alle folgenden Pakete installieren. | 23 | nicht alle folgenden Pakete installieren. |
11 | 24 | ||
@@ -39,33 +52,20 @@ Installation | |||
39 | Auf einem dedizierten Webserver (empfohlener Weg) | 52 | Auf einem dedizierten Webserver (empfohlener Weg) |
40 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 53 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
41 | 54 | ||
42 | wallabag nutzt eine große Anzahl an Bibliotheken, um zu funktionieren. Diese Bibliotheken müssen mit einem Tool namens Composer installiert werden. Du musst es installieren sofern du es bisher noch nicht gemacht hast. | ||
43 | |||
44 | Composer installieren: | ||
45 | |||
46 | :: | ||
47 | |||
48 | curl -s http://getcomposer.org/installer | php | ||
49 | |||
50 | Du kannst eine spezifische Anleitung `hier <https://getcomposer.org/doc/00-intro.md>`__ finden. | ||
51 | |||
52 | Um wallabag selbst zu installieren, musst du die folgenden Kommandos ausführen: | 55 | Um wallabag selbst zu installieren, musst du die folgenden Kommandos ausführen: |
53 | 56 | ||
54 | :: | 57 | :: |
55 | 58 | ||
56 | git clone https://github.com/wallabag/wallabag.git | 59 | git clone https://github.com/wallabag/wallabag.git |
57 | cd wallabag | 60 | cd wallabag && make install |
58 | git checkout 2.1.1 --force | ||
59 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | ||
60 | php bin/console wallabag:install --env=prod | ||
61 | 61 | ||
62 | Um PHPs eingebauten Server zu starten und zu testen, ob alles korrekt installiert wurde, kannst du folgendes Kommando ausführen: | 62 | Um PHPs eingebauten Server zu starten und zu testen, ob alles korrekt installiert wurde, kannst du folgendes Kommando ausführen: |
63 | 63 | ||
64 | :: | 64 | :: |
65 | 65 | ||
66 | php bin/console server:run --env=prod | 66 | make run |
67 | 67 | ||
68 | Und wallabag unter http://deineserverip:8000 erreichen | 68 | und wallabag unter http://deineserverip:8000 erreichen. |
69 | 69 | ||
70 | .. tip:: | 70 | .. tip:: |
71 | 71 | ||
@@ -87,18 +87,18 @@ Führe dieses Kommando aus, um das neueste Paket herunterzuladen und zu entpacke | |||
87 | 87 | ||
88 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package | 88 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package |
89 | 89 | ||
90 | (md5 hash: ``6c33520e29cc754b687f9cee0398dede``) | 90 | Du findest die `md5 Hashsumme des neuesten Pakets auf unserer Website <https://www.wallabag.org/pages/download-wallabag.html>`_. |
91 | 91 | ||
92 | Jetzt lese die Dokumentation, um einen Virtualhost zu erstellen, dann greife auf dein wallabag zu. | 92 | Jetzt lies die Dokumentation, um einen Virtualhost zu erstellen, dann greife auf dein wallabag zu. |
93 | Wenn du die Datenbankkonfiguration eingestellt hast, MySQL oder PostgreSQL zu nutzen, musst du einen Nutzer über das folgende Kommando erstellen ``php bin/console wallabag:install --env=prod``. | 93 | Wenn du die Datenbankkonfiguration eingestellt hast, MySQL oder PostgreSQL zu nutzen, musst du einen Nutzer über das folgende Kommando erstellen ``php bin/console wallabag:install --env=prod``. |
94 | 94 | ||
95 | Installation mit Docker | 95 | Installation mit Docker |
96 | ------------------------ | 96 | ~~~~~~~~~~~~~~~~~~~~~~~ |
97 | 97 | ||
98 | Wir stellen ein Docker Image zu Verfügung, um wallabag einfach zu installieren. Schaue in unser Repository in unserem `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__, um mehr Informationen zu erhalten. | 98 | Wir stellen ein Docker Image zu Verfügung, um wallabag einfach zu installieren. Schaue in unser Repository in unserem `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__, um mehr Informationen zu erhalten. |
99 | 99 | ||
100 | Kommando, um den Container zu starten | 100 | Kommando, um den Container zu starten |
101 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
102 | 102 | ||
103 | .. code-block:: bash | 103 | .. code-block:: bash |
104 | 104 | ||
@@ -108,7 +108,7 @@ Virtualhosts | |||
108 | ------------ | 108 | ------------ |
109 | 109 | ||
110 | Konfiguration von Apache | 110 | Konfiguration von Apache |
111 | ~~~~~~~~~~~~~~~~~~~~~~~ | 111 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
112 | 112 | ||
113 | Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren und du willst PHP als Apache Modul nutzen, dann ist hier ein vhost für wallabag: | 113 | Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren und du willst PHP als Apache Modul nutzen, dann ist hier ein vhost für wallabag: |
114 | 114 | ||
@@ -190,15 +190,14 @@ Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installie | |||
190 | access_log /var/log/nginx/wallabag_access.log; | 190 | access_log /var/log/nginx/wallabag_access.log; |
191 | } | 191 | } |
192 | 192 | ||
193 | Nach dem neuladen oder neustarten von nginx, solltest du nun wallabag unter http://domain.tld erreichen. | 193 | Nach dem Neuladen oder Neustarten von nginx solltest du nun wallabag unter http://domain.tld erreichen. |
194 | 194 | ||
195 | .. tip:: | 195 | .. tip:: |
196 | 196 | ||
197 | When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``. | ||
198 | Wenn du eine große Datei in wallabag importieren willst, solltest du diese Zeile zu deiner nginx Konfiguration hinzufügen ``client_max_body_size XM; # allows file uploads up to X megabytes``. | 197 | Wenn du eine große Datei in wallabag importieren willst, solltest du diese Zeile zu deiner nginx Konfiguration hinzufügen ``client_max_body_size XM; # allows file uploads up to X megabytes``. |
199 | 198 | ||
200 | Konfiguration von lighttpd | 199 | Konfiguration von lighttpd |
201 | ~~~~~~~~~~~~~~~~~~~~~~~~~ | 200 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
202 | 201 | ||
203 | Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren, dann ist hier ein Rezept für wallabag (bearbeite deine ``lighttpd.conf`` und füge die Konfiguration dort ein): | 202 | Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren, dann ist hier ein Rezept für wallabag (bearbeite deine ``lighttpd.conf`` und füge die Konfiguration dort ein): |
204 | 203 | ||
diff --git a/docs/en/developer/rabbitmq.rst b/docs/en/developer/rabbitmq.rst index ca0b0f3a..673228e9 100644 --- a/docs/en/developer/rabbitmq.rst +++ b/docs/en/developer/rabbitmq.rst | |||
@@ -46,6 +46,10 @@ Edit your ``parameters.yml`` file to edit RabbitMQ configuration. The default on | |||
46 | rabbitmq_user: guest | 46 | rabbitmq_user: guest |
47 | rabbitmq_password: guest | 47 | rabbitmq_password: guest |
48 | 48 | ||
49 | Enable RabbitMQ in wallabag | ||
50 | --------------------------- | ||
51 | |||
52 | In internal settings, in the **Import** section, enable RabbitMQ (with the value 1). | ||
49 | 53 | ||
50 | Launch RabbitMQ consumer | 54 | Launch RabbitMQ consumer |
51 | ------------------------ | 55 | ------------------------ |
diff --git a/docs/en/developer/redis.rst b/docs/en/developer/redis.rst index 005d6e4f..67b6452e 100644 --- a/docs/en/developer/redis.rst +++ b/docs/en/developer/redis.rst | |||
@@ -35,6 +35,10 @@ Edit your ``parameters.yml`` file to edit Redis configuration. The default one s | |||
35 | redis_host: localhost | 35 | redis_host: localhost |
36 | redis_port: 6379 | 36 | redis_port: 6379 |
37 | 37 | ||
38 | Enable Redos in wallabag | ||
39 | ------------------------ | ||
40 | |||
41 | In internal settings, in the **Import** section, enable Redis (with the value 1). | ||
38 | 42 | ||
39 | Launch Redis consumer | 43 | Launch Redis consumer |
40 | --------------------- | 44 | --------------------- |
diff --git a/docs/en/developer/testsuite.rst b/docs/en/developer/testsuite.rst new file mode 100644 index 00000000..b2b16cdc --- /dev/null +++ b/docs/en/developer/testsuite.rst | |||
@@ -0,0 +1,10 @@ | |||
1 | Testsuite | ||
2 | ========= | ||
3 | |||
4 | To ensure wallabag development quality, we wrote tests with `PHPUnit <https://phpunit.de>`_. | ||
5 | |||
6 | If you contribute to the project (by translating the application, by fixing bugs or by adding a new feature), please write your own tests. | ||
7 | |||
8 | To launch wallabag testsuite, you need to install `ant <http://ant.apache.org>`_. | ||
9 | |||
10 | Then, execute this command ``make test``. | ||
diff --git a/docs/en/user/android.rst b/docs/en/user/android.rst index 4271f037..ccbad264 100644 --- a/docs/en/user/android.rst +++ b/docs/en/user/android.rst | |||
@@ -29,13 +29,13 @@ Fill in your wallabag data. You need to enter your wallabag address. It is impor | |||
29 | :alt: Filled in settings | 29 | :alt: Filled in settings |
30 | :align: center | 30 | :align: center |
31 | 31 | ||
32 | After you have filled in your data, push the button Connection test and wait for the test to finish. | 32 | After you have filled in your data, push the button Connection test and wait for the test to finish. |
33 | 33 | ||
34 | .. image:: ../../img/user/android_configuration_connection_test.en.png | 34 | .. image:: ../../img/user/android_configuration_connection_test.en.png |
35 | :alt: Connection test with your wallabag data | 35 | :alt: Connection test with your wallabag data |
36 | :align: center | 36 | :align: center |
37 | 37 | ||
38 | The connection test shall finish with success. If not, you need to fix this first until you proceed. | 38 | The connection test should finish with success. If not, you need to fix this first until you proceed. |
39 | 39 | ||
40 | .. image:: ../../img/user/android_configuration_connection_test_success.en.png | 40 | .. image:: ../../img/user/android_configuration_connection_test_success.en.png |
41 | :alt: Connection test successful | 41 | :alt: Connection test successful |
@@ -65,16 +65,16 @@ After hitting the save button, you get the following screen. The app proposes to | |||
65 | :alt: Settings saved the first time | 65 | :alt: Settings saved the first time |
66 | :align: center | 66 | :align: center |
67 | 67 | ||
68 | Finally after the syncronisation finished successfully, you are presented the list of unread articles. | 68 | Finally after the synchronisation finished successfully, you are presented to the list of unread articles. |
69 | 69 | ||
70 | .. image:: ../../img/user/android_unread_feed_synced.en.png | 70 | .. image:: ../../img/user/android_unread_feed_synced.en.png |
71 | :alt: Filled article list cause feeds successfully syncronized | 71 | :alt: Filled article list cause feeds successfully synchronized |
72 | :align: center | 72 | :align: center |
73 | 73 | ||
74 | 74 | ||
75 | 75 | ||
76 | Known limitations | 76 | Known limitations |
77 | ---- | 77 | ----------------- |
78 | 78 | ||
79 | 2FA | 79 | 2FA |
80 | ~~~ | 80 | ~~~ |
@@ -85,7 +85,7 @@ Currently the does not support two-factor authentication. You should disable tha | |||
85 | Limited amount of articles with wallabag v2 | 85 | Limited amount of articles with wallabag v2 |
86 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 86 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
87 | 87 | ||
88 | In your wallabag web instance you can configure how many items are part of the RSS feed. This option did not exist in wallabag v1, where all articles were part of the feed. So if you set the amount of articles being displayed greater than the number of items being content of your RSS feed, you will only see the number of items in your RSS feed. | 88 | In your wallabag web instance you can configure how many items are part of the RSS feed. This option did not exist in wallabag v1, where all articles were part of the feed. So if you set the amount of articles being displayed greater than the number of items being content of your RSS feed, you will only see the number of items in your RSS feed. |
89 | 89 | ||
90 | 90 | ||
91 | SSL/TLS encryption | 91 | SSL/TLS encryption |
diff --git a/docs/en/user/import.rst b/docs/en/user/import.rst index 758e3816..70f0187d 100644 --- a/docs/en/user/import.rst +++ b/docs/en/user/import.rst | |||
@@ -35,7 +35,7 @@ From Readability | |||
35 | Export your Readability data | 35 | Export your Readability data |
36 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 36 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
37 | 37 | ||
38 | On the tools (`https://www.readability.com/tools/<https://www.readability.com/tools/>`_) page, click on "Export your data" in the "Data Export" section. You will received an email to download a json (which does not end with .json in fact). | 38 | On the tools (`https://www.readability.com/tools/ <https://www.readability.com/tools/>`_) page, click on "Export your data" in the "Data Export" section. You will received an email to download a json (which does not end with .json in fact). |
39 | 39 | ||
40 | Import your data into wallabag 2.x | 40 | Import your data into wallabag 2.x |
41 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 41 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
@@ -51,7 +51,7 @@ From Instapaper | |||
51 | Export your Instapaper data | 51 | Export your Instapaper data |
52 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 52 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
53 | 53 | ||
54 | On the settings (`https://www.instapaper.com/user<https://www.instapaper.com/user>`_) page, click on "Download .CSV file" in the "Export" section. A CSV file will be downloaded (like ``instapaper-export.csv``). | 54 | On the settings (`https://www.instapaper.com/user <https://www.instapaper.com/user>`_) page, click on "Download .CSV file" in the "Export" section. A CSV file will be downloaded (like ``instapaper-export.csv``). |
55 | 55 | ||
56 | Import your data into wallabag 2.x | 56 | Import your data into wallabag 2.x |
57 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 57 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst index 4aaabd82..e08e0306 100644 --- a/docs/en/user/installation.rst +++ b/docs/en/user/installation.rst | |||
@@ -6,7 +6,20 @@ Requirements | |||
6 | 6 | ||
7 | wallabag is compatible with PHP >= 5.5, including PHP 7. | 7 | wallabag is compatible with PHP >= 5.5, including PHP 7. |
8 | 8 | ||
9 | You'll need the following extensions for wallabag to work. Some of these may already activated in your version of PHP, so you may not have to install all corresponding packages. | 9 | .. note:: |
10 | To install wallabag easily, we create a ``Makefile``, so you need to have the ``make`` tool. | ||
11 | |||
12 | wallabag uses a large number of PHP libraries in order to function. These libraries must be installed with a tool called Composer. You need to install it if you have not already done so and be sure to use the 1.2 version (if you already have Composer, run a ``composer selfupdate``). | ||
13 | |||
14 | Install Composer: | ||
15 | |||
16 | :: | ||
17 | |||
18 | curl -s http://getcomposer.org/installer | php | ||
19 | |||
20 | You can find specific instructions `here <https://getcomposer.org/doc/00-intro.md>`__. | ||
21 | |||
22 | You'll also need the following extensions for wallabag to work. Some of these may already activated in your version of PHP, so you may not have to install all corresponding packages. | ||
10 | 23 | ||
11 | - php-session | 24 | - php-session |
12 | - php-ctype | 25 | - php-ctype |
@@ -38,31 +51,18 @@ Installation | |||
38 | On a dedicated web server (recommended way) | 51 | On a dedicated web server (recommended way) |
39 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 52 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
40 | 53 | ||
41 | wallabag uses a large number of PHP libraries in order to function. These libraries must be installed with a tool called Composer. You need to install it if you have not already done so and be sure to use the 1.2 version (if you already have Composer, run a ``composer selfupdate``). | ||
42 | |||
43 | Install Composer: | ||
44 | |||
45 | :: | ||
46 | |||
47 | curl -s http://getcomposer.org/installer | php | ||
48 | |||
49 | You can find specific instructions `here <https://getcomposer.org/doc/00-intro.md>`__. | ||
50 | |||
51 | To install wallabag itself, you must run the following commands: | 54 | To install wallabag itself, you must run the following commands: |
52 | 55 | ||
53 | :: | 56 | :: |
54 | 57 | ||
55 | git clone https://github.com/wallabag/wallabag.git | 58 | git clone https://github.com/wallabag/wallabag.git |
56 | cd wallabag | 59 | cd wallabag && make install |
57 | git checkout 2.1.1 --force | ||
58 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | ||
59 | php bin/console wallabag:install --env=prod | ||
60 | 60 | ||
61 | To start PHP's build-in server and test if everything did install correctly, you can do: | 61 | To start PHP's build-in server and test if everything did install correctly, you can do: |
62 | 62 | ||
63 | :: | 63 | :: |
64 | 64 | ||
65 | php bin/console server:run --env=prod | 65 | make run |
66 | 66 | ||
67 | And access wallabag at http://yourserverip:8000 | 67 | And access wallabag at http://yourserverip:8000 |
68 | 68 | ||
@@ -86,18 +86,18 @@ Execute this command to download and extract the latest package: | |||
86 | 86 | ||
87 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package | 87 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package |
88 | 88 | ||
89 | (md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``) | 89 | You will find the `md5 hash of the latest package on our website <https://www.wallabag.org/pages/download-wallabag.html>`_. |
90 | 90 | ||
91 | Now, read the following documentation to create your virtual host, then access your wallabag. | 91 | Now, read the following documentation to create your virtual host, then access your wallabag. |
92 | If you changed the database configuration to use MySQL or PostgreSQL, you need to create a user via this command ``php bin/console wallabag:install --env=prod``. | 92 | If you changed the database configuration to use MySQL or PostgreSQL, you need to create a user via this command ``php bin/console wallabag:install --env=prod``. |
93 | 93 | ||
94 | Installation with Docker | 94 | Installation with Docker |
95 | ------------------------ | 95 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
96 | 96 | ||
97 | We provide you a Docker image to install wallabag easily. Have a look to our repository on `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ to have more information. | 97 | We provide you a Docker image to install wallabag easily. Have a look to our repository on `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ to have more information. |
98 | 98 | ||
99 | Command to launch container | 99 | Command to launch container |
100 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
101 | 101 | ||
102 | .. code-block:: bash | 102 | .. code-block:: bash |
103 | 103 | ||
@@ -239,12 +239,12 @@ Rights access to the folders of the project | |||
239 | Test environment | 239 | Test environment |
240 | ~~~~~~~~~~~~~~~~ | 240 | ~~~~~~~~~~~~~~~~ |
241 | 241 | ||
242 | When we just want to test wallabag, we just run the command ``php bin/console server:run --env=prod`` to start our wallabag instance and everything will go smoothly because the user who started the project can access to the current folder naturally, without any problem. | 242 | When we just want to test wallabag, we just run the command ``make run`` to start our wallabag instance and everything will go smoothly because the user who started the project can access to the current folder naturally, without any problem. |
243 | 243 | ||
244 | Production environment | 244 | Production environment |
245 | ~~~~~~~~~~~~~~~~~~~~~~ | 245 | ~~~~~~~~~~~~~~~~~~~~~~ |
246 | 246 | ||
247 | As soon as we use Apache or Nginx to access to our wallabag instance, and not from the command ``php bin/console server:run --env=prod`` to start it, we should take care to grant the good rights on the good folders to keep safe all the folders of the project. | 247 | As soon as we use Apache or Nginx to access to our wallabag instance, and not from the command ``make run`` to start it, we should take care to grant the good rights on the good folders to keep safe all the folders of the project. |
248 | 248 | ||
249 | To do so, the folder name, known as ``DocumentRoot`` (for apache) or ``root`` (for Nginx), has to be absolutely accessible by the Apache/Nginx user. Its name is generally ``www-data``, ``apache`` or ``nobody`` (depending on linux system used). | 249 | To do so, the folder name, known as ``DocumentRoot`` (for apache) or ``root`` (for Nginx), has to be absolutely accessible by the Apache/Nginx user. Its name is generally ``www-data``, ``apache`` or ``nobody`` (depending on linux system used). |
250 | 250 | ||
diff --git a/docs/en/user/parameters.rst b/docs/en/user/parameters.rst new file mode 100644 index 00000000..79c50871 --- /dev/null +++ b/docs/en/user/parameters.rst | |||
@@ -0,0 +1,50 @@ | |||
1 | What is the meaning of the parameters? | ||
2 | ====================================== | ||
3 | .. csv-table:: Database parameters | ||
4 | :header: "name", "default", "description" | ||
5 | |||
6 | "database_driver", "pdo_sqlite", "Should be pdo_sqlite or pdo_mysql or pdo_pgsql" | ||
7 | "database_host", "127.0.0.1", "host of your database (usually localhost or 127.0.0.1)" | ||
8 | "database_port", "~", "port of your database (you can leave ``~`` to use the default one)" | ||
9 | "database_name", "symfony", "name of your database" | ||
10 | "database_user", "root", "user that can write to this database" | ||
11 | "database_password", "~", "password of that user" | ||
12 | "database_path", "``""%kernel.root_dir%/../data/db/wallabag.sqlite""``", "only for SQLite, define where to put the database file. Leave it for other database" | ||
13 | "database_table_prefix", "wallabag_", "all wallabag's tables will be prefixed with that string. You can include a ``_`` for clarity" | ||
14 | "database_socket", "null", "If your database is using a socket instead of tcp, put the path of the socket (other connection parameters will then be ignored" | ||
15 | |||
16 | .. csv-table:: Configuration to send emails from wallabag | ||
17 | :header: "name", "default", "description" | ||
18 | |||
19 | "mailer_transport", "smtp", "The exact transport method to use to deliver emails. Valid values are: smtp, gmail, mail, sendmail, null (which will disable the mailer)" | ||
20 | "mailer_host", "127.0.0.1", "The host to connect to when using smtp as the transport." | ||
21 | "mailer_user", "~", "The username when using smtp as the transport." | ||
22 | "mailer_password", "~", "The password when using smtp as the transport." | ||
23 | |||
24 | .. csv-table:: Other wallabag's option | ||
25 | :header: "name", "default", "description" | ||
26 | |||
27 | "locale", "en", "Default language of your wallabag instance (like en, fr, es, etc.)" | ||
28 | "secret", "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv", "This is a string that should be unique to your application and it's commonly used to add more entropy to security related operations." | ||
29 | "twofactor_auth", "true", "true to enable Two factor authentication" | ||
30 | "twofactor_sender", "no-reply@wallabag.org", "email of the email sender to receive the two factor code" | ||
31 | "fosuser_registration", "true", "true to enable public registration" | ||
32 | "fosuser_confirmation", "true", "true to send a confirmation by email for each registration" | ||
33 | "from_email", "no-reply@wallabag.org", "email address used in From: field in each email" | ||
34 | "rss_limit", "50", "limit for RSS feeds" | ||
35 | |||
36 | .. csv-table:: RabbitMQ configuration | ||
37 | :header: "name", "default", "description" | ||
38 | |||
39 | "rabbitmq_host", "localhost", "Host of your RabbitMQ" | ||
40 | "rabbitmq_port", "5672", "Port of your RabbitMQ" | ||
41 | "rabbitmq_user", "guest", "Usee that can read queues" | ||
42 | "rabbitmq_password", "guest", "Password of that user" | ||
43 | |||
44 | .. csv-table:: Redis configuration | ||
45 | :header: "name", "default", "description" | ||
46 | |||
47 | "redis_scheme", "tcp", "Specifies the protocol used to communicate with an instance of Redis. Valid values are: tcp, unix, http" | ||
48 | "redis_host", "localhost", "IP or hostname of the target server (ignored for unix scheme)" | ||
49 | "redis_port", "6379", "TCP/IP port of the target server (ignored for unix scheme)" | ||
50 | "redis_path", "null", "Path of the UNIX domain socket file used when connecting to Redis using UNIX domain sockets" | ||
diff --git a/docs/en/user/upgrade-2.0.x-2.1.y.rst b/docs/en/user/upgrade-2.0.x-2.1.1.rst index ec353a18..2f08b7bd 100644 --- a/docs/en/user/upgrade-2.0.x-2.1.y.rst +++ b/docs/en/user/upgrade-2.0.x-2.1.1.rst | |||
@@ -1,5 +1,5 @@ | |||
1 | Upgrading from 2.0.x to 2.1.y | 1 | Upgrade from 2.0.x to 2.1.1 |
2 | ============================= | 2 | =========================== |
3 | 3 | ||
4 | .. warning:: | 4 | .. warning:: |
5 | Before this migration, if you configured the Pocket import by adding your consumer key in Internal settings, please do a backup of it: you'll have to add it into the Config page after the upgrade. | 5 | Before this migration, if you configured the Pocket import by adding your consumer key in Internal settings, please do a backup of it: you'll have to add it into the Config page after the upgrade. |
@@ -7,8 +7,6 @@ Before this migration, if you configured the Pocket import by adding your consum | |||
7 | Upgrade on a dedicated web server | 7 | Upgrade on a dedicated web server |
8 | --------------------------------- | 8 | --------------------------------- |
9 | 9 | ||
10 | The last release is published on https://www.wallabag.org/pages/download-wallabag.html. In order to upgrade your wallabag installation and get the last version, run the following commands in you wallabag folder (replace ``2.1.1`` by the last release number): | ||
11 | |||
12 | :: | 10 | :: |
13 | 11 | ||
14 | rm -rf var/cache/* | 12 | rm -rf var/cache/* |
@@ -28,25 +26,43 @@ Download the last release of wallabag: | |||
28 | 26 | ||
29 | .. code-block:: bash | 27 | .. code-block:: bash |
30 | 28 | ||
31 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package | 29 | wget http://framabag.org/wallabag-release-2.1.1.tar.gz && tar xvf wallabag-release-2.1.1.tar.gz |
32 | 30 | ||
33 | (md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``) | 31 | (md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``) |
34 | 32 | ||
35 | Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours. | 33 | Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours. |
36 | 34 | ||
37 | Please note that we added new parameters in this version. You have to edit ``app/config/parameters.yml`` by adding these lines (replace with your configuration) : | 35 | Please check that your ``app/config/parameters.yml`` contains all the required parameters. Here is a default ``parameters.yml`` file. If you don't know which parameter you need to set, please leave the default one. |
38 | 36 | ||
39 | .. code-block:: bash | 37 | .. code-block:: yml |
40 | 38 | ||
41 | # RabbitMQ processing | 39 | parameters: |
42 | rabbitmq_host: localhost | 40 | database_driver: pdo_sqlite |
43 | rabbitmq_port: 5672 | 41 | database_host: 127.0.0.1 |
44 | rabbitmq_user: guest | 42 | database_port: null |
45 | rabbitmq_password: guest | 43 | database_name: symfony |
46 | 44 | database_user: root | |
47 | # Redis processing | 45 | database_password: null |
48 | redis_host: localhost | 46 | database_path: '%kernel.root_dir%/../data/db/wallabag.sqlite' |
49 | redis_port: 6379 | 47 | database_table_prefix: wallabag_ |
48 | mailer_transport: smtp | ||
49 | mailer_host: 127.0.0.1 | ||
50 | mailer_user: null | ||
51 | mailer_password: null | ||
52 | locale: en | ||
53 | secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv | ||
54 | twofactor_auth: true | ||
55 | twofactor_sender: no-reply@wallabag.org | ||
56 | fosuser_registration: true | ||
57 | fosuser_confirmation: true | ||
58 | from_email: no-reply@wallabag.org | ||
59 | rss_limit: 50 | ||
60 | rabbitmq_host: localhost | ||
61 | rabbitmq_port: 5672 | ||
62 | rabbitmq_user: guest | ||
63 | rabbitmq_password: guest | ||
64 | redis_host: localhost | ||
65 | redis_port: 6379 | ||
50 | 66 | ||
51 | If you use SQLite, you must also copy your ``data/`` folder inside the new installation. | 67 | If you use SQLite, you must also copy your ``data/`` folder inside the new installation. |
52 | 68 | ||
diff --git a/docs/en/user/upgrade-2.0.x-2.0.y.rst b/docs/en/user/upgrade-2.1.x-2.1.y.rst index 3391c2cd..575f4ba9 100644 --- a/docs/en/user/upgrade-2.0.x-2.0.y.rst +++ b/docs/en/user/upgrade-2.1.x-2.1.y.rst | |||
@@ -1,17 +1,17 @@ | |||
1 | Upgrade from 2.0.x to 2.0.y | 1 | Upgrading from 2.1.x to 2.1.y |
2 | =========================== | 2 | ============================= |
3 | 3 | ||
4 | Upgrade on a dedicated web server | 4 | Upgrade on a dedicated web server |
5 | --------------------------------- | 5 | --------------------------------- |
6 | 6 | ||
7 | The last release is published on https://www.wallabag.org/pages/download-wallabag.html. In order to upgrade your wallabag installation and get the last version, run the following commands in you wallabag folder (replace ``2.0.8`` by the last release number): | 7 | The last release is published on https://www.wallabag.org/pages/download-wallabag.html. In order to upgrade your wallabag installation and get the last version, run the following commands in you wallabag folder (replace ``2.1.2`` by the last release number): |
8 | 8 | ||
9 | :: | 9 | :: |
10 | 10 | ||
11 | rm -rf var/cache/* | 11 | rm -rf var/cache/* |
12 | git fetch origin | 12 | git fetch origin |
13 | git fetch --tags | 13 | git fetch --tags |
14 | git checkout 2.0.8 | 14 | git checkout 2.1.2 --force |
15 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | 15 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist |
16 | php bin/console cache:clear --env=prod | 16 | php bin/console cache:clear --env=prod |
17 | 17 | ||
@@ -26,7 +26,7 @@ Download the last release of wallabag: | |||
26 | 26 | ||
27 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package | 27 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package |
28 | 28 | ||
29 | (md5 hash of the 2.0.8 package: ``4f84c725d1d6e3345eae0a406115e5ff``) | 29 | (md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``) |
30 | 30 | ||
31 | Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours. | 31 | Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours. |
32 | 32 | ||
diff --git a/docs/fr/developer/rabbitmq.rst b/docs/fr/developer/rabbitmq.rst index 771725a7..92db5a28 100644 --- a/docs/fr/developer/rabbitmq.rst +++ b/docs/fr/developer/rabbitmq.rst | |||
@@ -46,6 +46,10 @@ Modifiez votre fichier ``parameters.yml`` pour éditer la configuration RabbitMQ | |||
46 | rabbitmq_user: guest | 46 | rabbitmq_user: guest |
47 | rabbitmq_password: guest | 47 | rabbitmq_password: guest |
48 | 48 | ||
49 | Activer RabbitMQ dans wallabag | ||
50 | ------------------------------ | ||
51 | |||
52 | Dans les paramètres internes, section **Import**, activez RabbitMQ (avec la valeur 1). | ||
49 | 53 | ||
50 | Démarrer les clients RabbitMQ | 54 | Démarrer les clients RabbitMQ |
51 | ----------------------------- | 55 | ----------------------------- |
diff --git a/docs/fr/developer/redis.rst b/docs/fr/developer/redis.rst index 5557e7a8..8a212e8a 100644 --- a/docs/fr/developer/redis.rst +++ b/docs/fr/developer/redis.rst | |||
@@ -35,6 +35,10 @@ Modifiez votre fichier ``parameters.yml`` pour éditer la configuration Redis. C | |||
35 | redis_host: localhost | 35 | redis_host: localhost |
36 | redis_port: 6379 | 36 | redis_port: 6379 |
37 | 37 | ||
38 | Activer Redis dans wallabag | ||
39 | --------------------------- | ||
40 | |||
41 | Dans les paramètres internes, section **Import**, activez Redis (avec la valeur 1). | ||
38 | 42 | ||
39 | Démarrer les clients Redis | 43 | Démarrer les clients Redis |
40 | -------------------------- | 44 | -------------------------- |
diff --git a/docs/fr/developer/testsuite.rst b/docs/fr/developer/testsuite.rst new file mode 100644 index 00000000..bd5c68c6 --- /dev/null +++ b/docs/fr/developer/testsuite.rst | |||
@@ -0,0 +1,10 @@ | |||
1 | Suite de tests | ||
2 | ============== | ||
3 | |||
4 | Pour assurer la qualité du développement de wallabag, nous avons écrit des tests avec `PHPUnit <https://phpunit.de>`_. | ||
5 | |||
6 | Si vous contribuez au projet (en traduisant l'application, en corrigeant des bugs ou en ajoutant une nouvelle fonctionnalité), merci d'écrire vos propres tests. | ||
7 | |||
8 | Pour lancer la suite de tests de wallabag, vous devez installer `ant <http://ant.apache.org>`_. | ||
9 | |||
10 | Ensuite, exécutez la commande ``make test``. | ||
diff --git a/docs/fr/user/import.rst b/docs/fr/user/import.rst index 6f114dd6..2e6caafb 100644 --- a/docs/fr/user/import.rst +++ b/docs/fr/user/import.rst | |||
@@ -36,7 +36,7 @@ Depuis Readability | |||
36 | Exportez vos données de Readability | 36 | Exportez vos données de Readability |
37 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 37 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
38 | 38 | ||
39 | Sur la page des outils (`https://www.readability.com/tools/<https://www.readability.com/tools/>`_), cliquez sur "Export your data" dans la section "Data Export". Vous allez recevoir un email avec un lien pour télécharger le json. | 39 | Sur la page des outils (`https://www.readability.com/tools/ <https://www.readability.com/tools/>`_), cliquez sur "Export your data" dans la section "Data Export". Vous allez recevoir un email avec un lien pour télécharger le json. |
40 | 40 | ||
41 | Importez vos données dans wallabag 2.x | 41 | Importez vos données dans wallabag 2.x |
42 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 42 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
@@ -52,7 +52,7 @@ Depuis Instapaper | |||
52 | Exportez vos données de Instapaper | 52 | Exportez vos données de Instapaper |
53 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 53 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
54 | 54 | ||
55 | Sur la page des paramètres (`https://www.instapaper.com/user<https://www.instapaper.com/user>`_), cliquez sur "Download .CSV file" dans la section "Export". Un fichier CSV se téléchargera (``instapaper-export.csv``). | 55 | Sur la page des paramètres (`https://www.instapaper.com/user <https://www.instapaper.com/user>`_), cliquez sur "Download .CSV file" dans la section "Export". Un fichier CSV se téléchargera (``instapaper-export.csv``). |
56 | 56 | ||
57 | Importez vos données dans wallabag 2.x | 57 | Importez vos données dans wallabag 2.x |
58 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 58 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst index 9dd39af7..b32707f8 100644 --- a/docs/fr/user/installation.rst +++ b/docs/fr/user/installation.rst | |||
@@ -6,6 +6,19 @@ Pré-requis | |||
6 | 6 | ||
7 | wallabag est compatible avec PHP >= 5.5, PHP 7 inclus. | 7 | wallabag est compatible avec PHP >= 5.5, PHP 7 inclus. |
8 | 8 | ||
9 | .. note:: | ||
10 | Pour installer wallabag facilement, nous avons créé un ``Makefile``, vous avez donc besoin d'avoir installé l'outil ``make``. | ||
11 | |||
12 | wallabag utilise un grand nombre de bibliothèques PHP pour fonctionner. Ces bibliothèques doivent être installées à l'aide d'un outil nommé Composer. Vous devez l'installer si ce n'est déjà fait et vous assurer que vous utilisez bien la version 1.2 (si vous avez déjà Composer, faite un ``composer selfupdate``). | ||
13 | |||
14 | Installation de Composer : | ||
15 | |||
16 | :: | ||
17 | |||
18 | curl -s http://getcomposer.org/installer | php | ||
19 | |||
20 | Vous pouvez trouver des instructions spécifiques `ici (en anglais) <https://getcomposer.org/doc/00-intro.md>`__. | ||
21 | |||
9 | Vous aurez besoin des extensions suivantes pour que wallabag fonctionne. Il est possible que certaines de ces extensions soient déjà activées dans votre version de PHP, donc vous n'avez pas forcément besoin d'installer tous les paquets correspondants. | 22 | Vous aurez besoin des extensions suivantes pour que wallabag fonctionne. Il est possible que certaines de ces extensions soient déjà activées dans votre version de PHP, donc vous n'avez pas forcément besoin d'installer tous les paquets correspondants. |
10 | 23 | ||
11 | - php-session | 24 | - php-session |
@@ -36,31 +49,18 @@ Installation | |||
36 | Sur un serveur dédié (méthode conseillée) | 49 | Sur un serveur dédié (méthode conseillée) |
37 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 50 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
38 | 51 | ||
39 | wallabag utilise un grand nombre de bibliothèques PHP pour fonctionner. Ces bibliothèques doivent être installées à l'aide d'un outil nommé Composer. Vous devez l'installer si ce n'est déjà fait et vous assurer que vous utilisez bien la version 1.2 (si vous avez déjà Composer, faite un ``composer selfupdate``). | ||
40 | |||
41 | Installation de Composer : | ||
42 | |||
43 | :: | ||
44 | |||
45 | curl -s http://getcomposer.org/installer | php | ||
46 | |||
47 | Vous pouvez trouver des instructions spécifiques `ici (en anglais) <https://getcomposer.org/doc/00-intro.md>`__. | ||
48 | |||
49 | Pour installer wallabag, vous devez exécuter ces commandes : | 52 | Pour installer wallabag, vous devez exécuter ces commandes : |
50 | 53 | ||
51 | :: | 54 | :: |
52 | 55 | ||
53 | git clone https://github.com/wallabag/wallabag.git | 56 | git clone https://github.com/wallabag/wallabag.git |
54 | cd wallabag | 57 | cd wallabag && make install |
55 | git checkout 2.1.1 --force | ||
56 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | ||
57 | php bin/console wallabag:install --env=prod | ||
58 | 58 | ||
59 | Pour démarrer le serveur interne à php et vérifier que tout s'est installé correctement, vous pouvez exécuter : | 59 | Pour démarrer le serveur interne à php et vérifier que tout s'est installé correctement, vous pouvez exécuter : |
60 | 60 | ||
61 | :: | 61 | :: |
62 | 62 | ||
63 | php bin/console server:run --env=prod | 63 | make run |
64 | 64 | ||
65 | Et accéder wallabag à l'adresse http://lipdevotreserveur:8000 | 65 | Et accéder wallabag à l'adresse http://lipdevotreserveur:8000 |
66 | 66 | ||
@@ -83,18 +83,18 @@ Exécutez cette commande pour télécharger et décompresser l'archive : | |||
83 | 83 | ||
84 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package | 84 | wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package |
85 | 85 | ||
86 | (hash md5 de l'archive 2.1.1 : ``9584a3b60a2b2a4de87f536548caac93``) | 86 | Vous trouverez `le hash md5 du dernier package sur notre site <https://www.wallabag.org/pages/download-wallabag.html>`_. |
87 | 87 | ||
88 | Maintenant, lisez la documentation ci-dessous pour crééer un virtual host. Accédez ensuite à votre installation de wallabag. | 88 | Maintenant, lisez la documentation ci-dessous pour crééer un virtual host. Accédez ensuite à votre installation de wallabag. |
89 | Si vous avez changé la configuration pour modifier le type de stockage (MySQL ou PostgreSQL), vous devrez vous créer un utilisateur via la commande ``php bin/console wallabag:install --env=prod``. | 89 | Si vous avez changé la configuration pour modifier le type de stockage (MySQL ou PostgreSQL), vous devrez vous créer un utilisateur via la commande ``php bin/console wallabag:install --env=prod``. |
90 | 90 | ||
91 | Installation avec Docker | 91 | Installation avec Docker |
92 | ------------------------ | 92 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
93 | 93 | ||
94 | Nous vous proposons une image Docker pour installer wallabag facilement. Allez voir du côté de `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ pour plus d'informations. | 94 | Nous vous proposons une image Docker pour installer wallabag facilement. Allez voir du côté de `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ pour plus d'informations. |
95 | 95 | ||
96 | Commande pour démarrer le containeur | 96 | Commande pour démarrer le containeur |
97 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 97 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
98 | 98 | ||
99 | .. code-block:: bash | 99 | .. code-block:: bash |
100 | 100 | ||
diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 00000000..54d0bb78 --- /dev/null +++ b/scripts/install.sh | |||
@@ -0,0 +1,10 @@ | |||
1 | #! /usr/bin/env bash | ||
2 | # You can execute this file to install wallabag | ||
3 | # eg: `sh install.sh prod` | ||
4 | |||
5 | ENV=$1 | ||
6 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
7 | |||
8 | git checkout $TAG | ||
9 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist | ||
10 | php bin/console wallabag:install --env=$ENV | ||
diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100644 index 00000000..e118b87e --- /dev/null +++ b/scripts/release.sh | |||
@@ -0,0 +1,19 @@ | |||
1 | #! /usr/bin/env bash | ||
2 | # You can execute this file to create a new package for wallabag | ||
3 | # eg: `sh release.sh master /tmp wllbg-release prod` | ||
4 | |||
5 | VERSION=$1 | ||
6 | TMP_FOLDER=$2 | ||
7 | RELEASE_FOLDER=$3 | ||
8 | ENV=$4 | ||
9 | |||
10 | rm -rf $TMP_FOLDER/$RELEASE_FOLDER | ||
11 | mkdir $TMP_FOLDER/$RELEASE_FOLDER | ||
12 | git clone git@github.com:wallabag/wallabag.git -b $VERSION $TMP_FOLDER/$RELEASE_FOLDER/$VERSION | ||
13 | cd $TMP_FOLDER/$RELEASE_FOLDER/$VERSION && SYMFONY_ENV=$ENV composer up -n --no-dev | ||
14 | cd $TMP_FOLDER/$RELEASE_FOLDER/$VERSION && php bin/console wallabag:install --env=$ENV | ||
15 | cd $TMP_FOLDER/$RELEASE_FOLDER && tar czf wallabag-$VERSION.tar.gz --exclude="var/cache/*" --exclude="var/logs/*" --exclude="var/sessions/*" --exclude=".git" $VERSION | ||
16 | echo "MD5 checksum of the package for wallabag $VERSION" | ||
17 | md5 $TMP_FOLDER/$RELEASE_FOLDER/wallabag-$VERSION.tar.gz | ||
18 | scp $TMP_FOLDER/$RELEASE_FOLDER/wallabag-$VERSION.tar.gz framasoft_bag@78.46.248.87:/var/www/framabag.org/web | ||
19 | rm -rf $TMP_FOLDER/$RELEASE_FOLDER | ||
diff --git a/scripts/update.sh b/scripts/update.sh new file mode 100644 index 00000000..b920a829 --- /dev/null +++ b/scripts/update.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #! /usr/bin/env bash | ||
2 | # You can execute this file to update wallabag | ||
3 | # eg: `sh update.sh prod` | ||
4 | |||
5 | ENV=$1 | ||
6 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
7 | |||
8 | rm -rf var/cache/* | ||
9 | git fetch origin | ||
10 | git fetch --tags | ||
11 | git checkout $TAG --force | ||
12 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist | ||
13 | php bin/console cache:clear --env=$ENV | ||