news/README.rst

186 строки
7.3 KiB
ReStructuredText
Исходник Обычный вид История

2013-02-07 03:21:02 +04:00
README
======
2013-07-06 03:27:44 +04:00
|travis-ci|_
2013-03-23 18:30:47 +04:00
2013-07-24 18:18:10 +04:00
The News app is a an RSS/Atom feed aggregator. It offers a `RESTful API <https://github.com/owncloud/news/wiki/API-1.2>`_ for app developers. The source code is `available on GitHub <https://github.com/owncloud/news>`_
2013-03-26 02:01:04 +04:00
For further developer and user documentation please visit `the wiki <https://github.com/owncloud/news/wiki>`_
2013-07-06 16:17:48 +04:00
.. |travis-ci| image:: https://travis-ci.org/owncloud/news.png
.. _travis-ci: https://travis-ci.org/owncloud/news
2013-07-06 03:18:31 +04:00
2013-04-13 03:47:19 +04:00
Maintainers
-----------
2013-08-03 12:23:49 +04:00
* `Alessandro Cosentino <https://github.com/zimba12>`_
* `Bernhard Posselt <https://github.com/Raydiation>`_
2013-04-30 00:06:32 +04:00
* `Jan-Christoph Borchardt <https://github.com/jancborchardt>`_ (Design)
2013-04-13 03:47:19 +04:00
2013-09-07 22:42:16 +04:00
Supported Webservers
--------------------
* Apache
Supported Databases
-------------------
* Postgresql
* Sqlite
* MySql
2013-04-16 17:47:59 +04:00
Bugs
----
2013-04-17 23:15:41 +04:00
Before reporting bugs:
2013-04-17 23:15:58 +04:00
2013-04-27 20:23:41 +04:00
* We do not support Internet Explorer and Safari (Patches accepted though, except for IE < 10)
2013-04-17 23:15:41 +04:00
* get the newest version of the App Framework
* get the newest version of the News app
2013-04-29 17:53:23 +04:00
* `check if they have already been reported <https://github.com/owncloud/news/issues?state=open>`_
2013-03-23 18:22:29 +04:00
2013-06-05 19:28:10 +04:00
----------------
2013-08-03 12:23:49 +04:00
If you are not able to add a feed because its XML *does not validate* (see `this issue <https://github.com/owncloud/news/issues/133>`_ for an example),
2013-05-12 19:49:51 +04:00
check if:
2013-06-05 19:28:10 +04:00
* it is a valid RSS by running it through the `W3C validator <http://feed2.w3.org/>`_
2013-05-12 19:49:51 +04:00
* you are able to add the feed in other feed readers
* it runs without error through `SimplePie demo <http://www.simplepie.org/demo/>`_
2013-06-05 19:28:10 +04:00
In the case the third condition is not met, please file a bug on `SimplePie issue tracker <https://github.com/simplepie/simplepie>`_.
2013-05-12 19:49:51 +04:00
2013-04-29 17:43:35 +04:00
2013-04-17 02:03:51 +04:00
Before you install the News app
-------------------------------
Before you install the app check that the following requirements are met:
2013-04-29 19:07:37 +04:00
- `Magic quotes are turned off <http://php.net/manual/de/security.magicquotes.disabling.php>`_ (only needed for PHP < 5.4)
2013-04-23 21:14:49 +04:00
- `You use a browser that supports the FileReader API <https://developer.mozilla.org/en/docs/DOM/FileReader#Browser_compatibility>`_
2013-04-20 18:30:47 +04:00
- You can use a cron or webcron to call Background Jobs in ownCloud
- Your **data/** directory is owned by your webserver user and write/readable
2013-04-29 17:43:35 +04:00
- You have installed **php-curl** and activated it in the **php.ini**
2013-07-06 14:57:31 +04:00
- Install ownCloud **5.0.6+** (important!)
2013-04-29 17:43:35 +04:00
Should you have upgraded from a prior version, disable the CSS and JavaScript caching by adding this to :file:`owncloud/config/config.php`::
DEFINE('DEBUG', true);
2013-04-29 17:45:03 +04:00
You can remove the line after a page reload
2013-05-25 16:34:44 +04:00
2013-05-25 16:36:41 +04:00
App Store
---------
2013-04-29 17:49:48 +04:00
Installation
~~~~~~~~~~~~
2013-04-29 17:43:35 +04:00
- Go to the ownCloud apps page
2013-04-29 17:53:23 +04:00
- Activate the **App Framework** App first, then activate the **News** app in the apps menu
2013-04-29 17:43:35 +04:00
- `Set up ownCloud Background Jobs <http://doc.owncloud.org/server/5.0/admin_manual/configuration/background_jobs.html>`_ to enable feed updates. A recommended timespan for feed updates is 15-30 Minutes.
2013-04-29 17:49:48 +04:00
Keep up to date
~~~~~~~~~~~~~~~
2013-08-03 12:23:49 +04:00
Both the **News** and **App Framework** App can be updated through the ownCloud apps page.
2013-05-06 16:19:46 +04:00
2013-04-17 02:03:51 +04:00
2013-04-29 17:49:48 +04:00
Git (development version)
-------------------------
Installation
~~~~~~~~~~~~
2013-04-17 02:03:51 +04:00
2013-04-29 17:53:23 +04:00
- Clone the **App Framework** app into the **/var/www** directory::
2013-03-23 18:22:29 +04:00
git clone https://github.com/owncloud/appframework.git
2013-04-29 17:53:23 +04:00
- Clone the **News** app into the **/var/www** directory::
2013-03-23 18:22:29 +04:00
git clone https://github.com/owncloud/news.git
2013-03-23 18:23:43 +04:00
- Link both into ownCloud's apps folder::
2013-03-23 18:22:29 +04:00
ln -s /var/www/appframework /var/www/owncloud/apps
ln -s /var/www/news /var/www/owncloud/apps
2013-04-29 17:53:23 +04:00
- Activate the **App Framework** App first, then activate the **News** app in the apps menu
2013-04-20 18:30:47 +04:00
- `Set up ownCloud Background Jobs <http://doc.owncloud.org/server/5.0/admin_manual/configuration/background_jobs.html>`_ to enable feed updates. A recommended timespan for feed updates is 15-30 Minutes.
2013-04-29 17:49:48 +04:00
Keep up to date
~~~~~~~~~~~~~~~
To get the newest update you can use git. To update the appframework use::
cd /var/www/appframework
git pull --rebase origin master
To update the News app use::
cd /var/www/news
git pull --rebase origin master
2013-04-20 18:30:47 +04:00
2013-04-22 20:42:24 +04:00
Keyboard shortcuts
------------------
2013-04-29 17:51:01 +04:00
* **Next item**: n / j / right arrow
* **Previous item**: p / k / left arrow
* **Star current item**: s / i
* **Keep current item unread**: u
2013-06-07 21:02:54 +04:00
* **Star item and jump to next one**: h
* **Open current item**: o
2013-04-23 02:06:27 +04:00
2013-05-21 17:45:13 +04:00
2013-04-23 02:06:27 +04:00
Performance Notices
-------------------
2013-04-23 14:25:27 +04:00
* Use MySQL or PostgreSQL for better database performance
2013-08-05 18:27:51 +04:00
* Use the `updater script for large installations to thread the update <https://github.com/owncloud/news/wiki/Cron-1.2>`_
2013-04-23 14:25:27 +04:00
2013-07-03 12:48:50 +04:00
Frequent Problems
-----------------
2013-07-03 12:57:27 +04:00
All feeds are not updated anymore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2013-07-03 12:48:50 +04:00
`This is a bug in the core backgroundjob system <https://github.com/owncloud/core/issues/3221>`_ deleting the :file:`owncloud/data/cron.lock` file gets the cron back up running
2013-08-05 18:27:51 +04:00
Another way to fix this is to run a custom `updater script <https://github.com/owncloud/news/wiki/Cron-1.2>`_
2013-07-03 12:57:27 +04:00
All feeds are not updated and theres no cron.lock
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2013-07-03 12:48:50 +04:00
* Check if the cronjob exists with **crontab -u www-data -e** (replace www-data with your httpd user)
2013-07-07 20:04:51 +04:00
* Check the file permissions of the **cron.php** file and if **www-data** (or whatever your httpd user is called like) can read and execute that script
2013-07-03 12:48:50 +04:00
* Check if the cronjob is ever executed by placing an **error_log('updating')** in the `background job file <https://github.com/owncloud/news/blob/master/backgroundjob/task.php#L37>`_. If the cronjob runs, there should be an updating log statement in your httpd log.
* If there is no **updating** statement in your logs check if your cronjob is executed by executing a different script
2013-07-03 12:56:25 +04:00
* If your cron works fine but owncloud's cronjobs are never executed, file a bug in `core <https://github.com/owncloud/core/>`_
2013-08-05 18:27:51 +04:00
* Try the `updater script <https://github.com/owncloud/news/wiki/Cron-1.2>`_
2013-05-15 13:53:51 +04:00
News always redirects to files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This problem is related to opcode caching, `check the issue tracker for how to solve it <https://github.com/owncloud/news/issues/319>`_
2013-04-23 14:25:27 +04:00
Configuration
2013-04-29 17:54:41 +04:00
-------------
2013-09-02 05:19:42 +04:00
All configuration values are set inside :file:`owncloud/data/news/config/config.ini`
2013-04-23 14:25:27 +04:00
2013-09-02 05:19:42 +04:00
The configuration is in **INI** format and looks like this:
2013-04-23 14:25:27 +04:00
2013-09-02 05:19:42 +04:00
.. code-block:: ini
autoPurgeMinimumInterval = 60
autoPurgeCount = 200
simplePieCacheDuration = 1800
feedFetcherTimeout = 60
2013-09-02 05:21:47 +04:00
useCronUpdates = true
2013-08-03 12:23:49 +04:00
* **autoPurgeMinimumInterval**: Minimum amount of seconds after deleted feeds and folders are removed from the database.
2013-09-10 17:39:23 +04:00
* **autoPurgeCount**: To let people have more read and unstarred items per feed before they are deleted increase this value. If you set this too low this will cause read articles to reappear: For instance a feed offers the newest 100 entries. The user reads 80 of them, the autoPrugeCount is set to 20. After the cleanup which runs with the update only 20 read entries of that feed will remain, which means 60 entries are deleted. The next update will then readd those 60 entries because they are gone from the database and thus appear to be new entries.
* **simplePieCacheDuration**: Amount of seconds to cache feeds
* **feedFetcherTimeout**: Maximum number of seconds to wait for an RSS or Atom feed to load. If a feed takes longer than that number of seconds to update, the update will be aborted
* **useCronUpdates**: To use a custom update/cron script you need to disable the cronjob which is run by ownCloud by default by setting this to false
2013-08-03 12:23:49 +04:00
2013-04-23 14:25:27 +04:00
2013-05-07 19:50:37 +04:00
2013-05-07 20:01:28 +04:00