Fast way to deploy ttrss on OpenShift

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
who_me
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 14 Mar 2013, 21:47

Fast way to deploy ttrss on OpenShift

Postby who_me » 17 Mar 2013, 22:10

My weekend project is done. I wanted a fast way to deploy ttrss to OpenShift and I got it. I was inspired by this fellow and his git repo:



So here is my github hosted repo with polished deployment :)



Short instructions are on the page, scroll towards the bottom.

Features Tiny Tiny RSS 1.7.4 and modification to backend.php to allow people to set feed updates to 5 minutes. Enjoy.

Thanks to the nice people that spotted the workarounds to the issues with environment variables on Open Shift.

cautiousgiant
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 17 Mar 2013, 23:50

Re: Fast way to deploy ttrss on OpenShift

Postby cautiousgiant » 17 Mar 2013, 23:52

Thanks very much for taking the time to set this up!

I've got TTRSS up and running on Openshift, but I'm not seeing any feed updates. I've imported my OPML file and set updates to every five minutes, but so far no feeds show any content.

Do I need to do something extra to get the cron job up and running? If so, what?

Thanks!

cg

cautiousgiant
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 17 Mar 2013, 23:50

Re: Fast way to deploy ttrss on OpenShift

Postby cautiousgiant » 18 Mar 2013, 00:09

Ah, never mind. I see there is an hourly update script in the cron folder. Thanks!

who_me
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 14 Mar 2013, 21:47

Re: Fast way to deploy ttrss on OpenShift

Postby who_me » 18 Mar 2013, 02:24

It should work like this:

- if you're logged in via the web interface, feeds should update at whatever the interval is set in the prefs. The script will also run, hourly, but there should be no toe stepping :)
- if you're logged off, then the script will update the feeds hourly

extrem101
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 20 Mar 2013, 04:20

Re: Fast way to deploy ttrss on OpenShift

Postby extrem101 » 20 Mar 2013, 04:25

nice work.

but for some reason in my Cartridge (PHP 5.3) i had to change the getenv('OPENSHIFT_...') in the config file to $_ENV['OPENSHIFT_....']
Just mentioning it if someone else also has the problem that the network connection doesn't work right out of the box.

i don't know why i got this older php version? some internet sources say that getenv is definitely the new and right method to get the variables in openshift.

who_me
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 14 Mar 2013, 21:47

Re: Fast way to deploy ttrss on OpenShift

Postby who_me » 20 Mar 2013, 14:37

Yeah, seems to be an issue with how some of their "nodes" are configured. During the time I was testing my repo (haven't used git before) I created and then deleted at least 10 applications. All of the worked out of the box with files pulled from that git repo. I'm thinking I'll just write a script to generate config.php on the fly. That way I don't have to mess with php config weirdness.

dimon222
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 20 Mar 2013, 18:54

Re: Fast way to deploy ttrss on OpenShift

Postby dimon222 » 20 Mar 2013, 19:01

Auto-update is not working even with opened browser, even with hourly cron script.
What could be problem in? I changed update options in prefs, but still nothing. It works manually though.
Can it be related to existing some red (error) feeds?

dimon222
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 20 Mar 2013, 18:54

Re: Fast way to deploy ttrss on OpenShift

Postby dimon222 » 21 Mar 2013, 04:02

viewtopic.php?p=5805#p5805 - Solution for problem with cron updates.

flyingben
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 28 Mar 2013, 13:49

Re: Fast way to deploy ttrss on OpenShift

Postby flyingben » 28 Mar 2013, 13:58

Hi whoe_me, thanks a lot for your effort!
But I followed those steps and got "Unable to connect to database (as to , database ttrss):" when I tried to visit my ttrss. Do you have any idea about this ?

jicama
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 30 Mar 2013, 06:44

Re: Fast way to deploy ttrss on OpenShift

Postby jicama » 30 Mar 2013, 06:46


gasche
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 01 Apr 2013, 11:01

Re: Fast way to deploy ttrss on OpenShift

Postby gasche » 01 Apr 2013, 11:08

Last edited by gasche on 02 Apr 2013, 16:26, edited 1 time in total.

nathan
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 01 Apr 2013, 18:59

Re: Fast way to deploy ttrss on OpenShift

Postby nathan » 01 Apr 2013, 19:10


dzl
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 02 Apr 2013, 08:08

Re: Fast way to deploy ttrss on OpenShift

Postby dzl » 02 Apr 2013, 08:11


gasche
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 01 Apr 2013, 11:01

Re: Fast way to deploy ttrss on OpenShift

Postby gasche » 02 Apr 2013, 16:28


nathan
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 01 Apr 2013, 18:59

Re: Fast way to deploy ttrss on OpenShift

Postby nathan » 05 Apr 2013, 03:42

Thanks for the reply. However, the updater plugin will not work. I enabled it via config.php, but I''m just getting a blank window when I'm trying to update. Has anyone here had success with the updater plugin working?


Return to “Unsupported platforms”

Who is online

Users browsing this forum: No registered users and 2 guests