ttrss-fast-deployment icon indicating copy to clipboard operation
ttrss-fast-deployment copied to clipboard

After following instructions, with no errors reported, "Unable to connect to database (as to , database ttrss):"

Open keithzg opened this issue 11 years ago • 3 comments

Alas! I'm getting the exact same error as I got when I tried to set it up on an EC2 instance. But here, my own user input was so minimal that I'm baffled as to what I could be doing wrong.

After adding my public key in the management console, I literally just ran:

rhc app create ttrss php-5 postgresql-8 --from-code=git://github.com/who-me/ttrss-fast-deployment.git rhc cartridge add cron-1.4 -a ttrss

but the entirety of my created application is a page stating

Unable to connect to database (as to , database ttrss):

keithzg avatar Mar 20 '13 20:03 keithzg

Yep, seeing this problem myself now. Will probably whip up a script to auto-generate the config.php file. In the meantime, replacing all the getenv('global variable name here') statements with $_ENV['global variable name here'] should get you up and running.

I chose to use getenv because the other way did not work. RedHat better make up their minds :)

silviucc avatar Mar 20 '13 20:03 silviucc

Heh. Yeah, $ENV[] makes it work fine for me.

keithzg avatar Mar 20 '13 23:03 keithzg

It works but only for the web application.

The update cron doesn't work with $_ENV, it needs getenv !

ICONS_DIR defined in config.php is not writable (chmod -R 777 icons).

mNantern avatar May 30 '13 08:05 mNantern