OpenShift quickstart for Tiny Tiny RSS (with Feedly theme)

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
fabianofranz
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 07 Aug 2013, 00:29

OpenShift quickstart for Tiny Tiny RSS (with Feedly theme)

Postby fabianofranz » 07 Aug 2013, 01:03

Folks,

We just updated the Github repository for the OpenShift (https://openshift.com) Quickstart. It's currently supporting Tiny Tiny RSS version 1.9 and the "Feedly" theme is also available in Preferences by default.

Github repository:

https://github.com/openshift-quickstart/tiny_tiny_rss-openshift-quickstart

Deploy it on OpenShift for free just hitting the "Deploy now" button:

https://www.openshift.com/quickstarts/tiny-tiny-rss

Enjoy,

Fabiano Franz
Last edited by fabianofranz on 28 Aug 2013, 01:14, edited 1 time in total.

miwie
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 19 Jul 2013, 11:05

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby miwie » 07 Aug 2013, 12:52

Got in less then 10 minuts a runnin TT RSS 1.9 on OpenShift (and this was my first OpenShift app I created)!
Good work guys!

Michael

QuickBASIC
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Mar 2013, 09:56

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby QuickBASIC » 19 Aug 2013, 23:21

Works great, but I can't seem to access it using the Android app (yes API is on in preferences)... is this a limitation of Openshift or am I maybe doing something wrong?

fabianofranz
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 07 Aug 2013, 00:29

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby fabianofranz » 19 Aug 2013, 23:37

QuickBASIC wrote:Works great, but I can't seem to access it using the Android app (yes API is on in preferences)... is this a limitation of Openshift or am I maybe doing something wrong?


I didn't test the API, let me try that.

QuickBASIC
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Mar 2013, 09:56

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby QuickBASIC » 20 Aug 2013, 01:41

fabianofranz wrote:
QuickBASIC wrote:Works great, but I can't seem to access it using the Android app (yes API is on in preferences)... is this a limitation of Openshift or am I maybe doing something wrong?


I didn't test the API, let me try that.


The solution was using https instead of http in the server URL. Doh. User error.

sojusnik
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 27 Aug 2013, 22:53

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby sojusnik » 27 Aug 2013, 23:02

@fabianofranz

Thank you for this convenient way installing TTR!

As a newbie I would like to know how to update TTR and the according Feedly theme, when a new version is out?
Is there a convenient way to backup the TTR installation in OpenShift , in case something goes wrong? Ideally on a daily basis or something like that.
Currently, the free version of OpenShift grants you 1GB of free space. Is this enough for TTR, if someone has ~300 feeds, that are updated daily?

Cheers!

levito
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 17 Mar 2013, 04:18

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby levito » 28 Aug 2013, 01:44

I have ~120 feeds, 1800 starred articles (about 1600 of them imported from Google Reader) and about 500 fresh articles daily. Running TT-RSS for about half a year, my SQL backup today was about 150MB.

So I think you are pretty safe with 1GB to have thousands of starred articles and still keep all articles for at least some months. You can set a preference in TT-RSS for when to purge old articles. I have set mine to 365 days.

sojusnik
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 27 Aug 2013, 22:53

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby sojusnik » 28 Aug 2013, 01:49

Thanks levito!

Already set TTR to purge articles after 180 days.

fabianofranz
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 07 Aug 2013, 00:29

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby fabianofranz » 28 Aug 2013, 07:26

@sojusnik

sojusnik wrote:@fabianofranz

Thank you for this convenient way installing TTR!

As a newbie I would like to know how to update TTR and the according Feedly theme, when a new version is out?


Given TTR is not an "official" quickstart in OpenShift it needs to be upgraded manually through the Git repository. Luckily we maintain a Git repo for the TTR OpenShift Quickstart (with the Feedly theme bundled as a Git Submodule) in the URL below and if you look at your OpenShift web console you will notice your deploy of TTR also has a Git repo. So it's a matter of keeping your OpenShift repo in sync with the quickstart repo on Github (from time to time, pull from Github then push to OpenShift).

https://github.com/openshift-quickstart/tiny_tiny_rss-openshift-quickstart/

That's the proceedings currently, but we understand that Git may not be familiar to everyone. Any contributions related to an auto-updater integration or something like that would be very welcome.

Is there a convenient way to backup the TTR installation in OpenShift , in case something goes wrong? Ideally on a daily basis or something like that.

Not automatically, but yeah there is a command for that:

Code: Select all

rhc snapshot save --app <appname>


This will download a compressed file with everything you have in your TTR deploy (source code, database, Git repo, everything). From that you could very easily write a cron script to upload/email that file on a daily basis, etc.

Currently, the free version of OpenShift grants you 1GB of free space. Is this enough for TTR, if someone has ~300 feeds, that are updated daily?

That's a lot of space and might be enough, data takes very little space. I myself have hundreds of feeds and use it with 1GB. Anyway OpenShift provides upgrade to a paid plan that will give you 6GB in case you need more space in the future (very unlikely).

Cheers!

Cheers! ;)

disconn3ct
Bear Rating Trainee
Bear Rating Trainee
Posts: 37
Joined: 12 Apr 2013, 15:07

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby disconn3ct » 28 Aug 2013, 16:56

As far as size, remember that OS doesn't always handle vacuuming sanely.

https://github.com/disconn3ct/tiny_tiny_rss-openshift-quickstart/issues/5 on my TTRSS OS quickstart has some info on what can happen and how to prevent/recover. (I'll probably be adding a vacuumdb cron job in the next update so that it doesn't get anyone else.)

fabianofranz
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 07 Aug 2013, 00:29

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby fabianofranz » 29 Aug 2013, 01:27

disconn3ct wrote:As far as size, remember that OS doesn't always handle vacuuming sanely.

https://github.com/disconn3ct/tiny_tiny_rss-openshift-quickstart/issues/5 on my TTRSS OS quickstart has some info on what can happen and how to prevent/recover. (I'll probably be adding a vacuumdb cron job in the next update so that it doesn't get anyone else.)


@disconn3ct

Woa, great job with submodules for [up|down]grade in your quickstart! If you like feel free to pull request to the openshift-quickstart/tiny_tiny_rss-openshift-quickstart repo. I really believe we can make it much better (and more up-to-date) by receiving updates from the community. ;)

oliroe
Bear Rating Trainee
Bear Rating Trainee
Posts: 22
Joined: 24 May 2013, 02:27

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby oliroe » 13 Oct 2013, 23:26

Hi

Has anyone else had a problem with their install of ttrss on Openshift not purging? I've set mine to 5 days and quota keeps climbing until 1gig and then I can't access it

Thanks

darodi79
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 15 Oct 2013, 00:55

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby darodi79 » 15 Oct 2013, 01:01

I had the same problem.
sometimes my psql database was larger than 1G
after a vacuum I go back to 200M

I created a new task vacuum in
./ttrss/.openshift/cron/daily/

$ cat vacuum

Code: Select all

#!/bin/sh
if [ -f ${OPENSHIFT_DATA_DIR}/.schema_deployed ]; then
  vacuumdb -f --host=$OPENSHIFT_POSTGRESQL_DB_HOST --port=$OPENSHIFT_POSTGRESQL_DB_PORT
fi
exit 0

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby sleeper_service » 15 Oct 2013, 02:04

openshit doesn't allow the autovacuum to work, they insanely disallow connections to the loopback, which is required for autovacuum.

oliroe
Bear Rating Trainee
Bear Rating Trainee
Posts: 22
Joined: 24 May 2013, 02:27

Re: OpenShift quickstart for Tiny Tiny RSS (with Feedly them

Postby oliroe » 15 Oct 2013, 14:50

Thanks both

Don't suppose I could be really irritating and ask for a step by step guide on how to do that?

I can log in to my Openshift account using SSH and have made basic adjustments to the config.php file but that's about as far as my knowledge goes

Would using the command 'vi newname' in ./ttrss/.openshift/cron/daily/, copying the text above and then saving the changes work?

Thanks

PS I've added it as an issue in the repository https://github.com/disconn3ct/tiny_tiny ... t/issues/9

Edit - All sorted now after a little more research. I used the following tutorial http://bash.cyberciti.biz/guide/Hello,_World!_Tutorial


Return to “Unsupported platforms”

Who is online

Users browsing this forum: No registered users and 4 guests