Search code examples
openshifthtdocs

Where is htdocs in OpenShift cartridge?


I've setup an OpenShift account, and used a CodeIgniter quickstart. From the OpenShift Management console, I click through to my URL, and the default welcome_message of CodeIgniter shows up, as expected.

Now I use WinSCP to connect up to my remote site, and find a folder structure that is nothing I recognise. I've tried searching for htdocs, and also "welcome_message.php" but am not having any luck.

Can anyone point me to where I might find the htdocs folder etc on OpenShift?

Thanks in advance.


Solution

  • You should not use WinSCP to push code up to your application. You certainly can but you lose out on a lot of the functionality. The proper way to push code to OpenShift is via git.

    To answer your question, the application root is located at:

    ~/app-root/runtime/repo/php/

    Let me know your thoughts on the CI quickstart. I wrote in almost 18 months ago and it probably needs an update.

    -- gs