openshift "www" directory?

797 Views Asked by At

My openshift rhc client is not working so i again use Filezilla FTP to acess my openshift

Past year i use filezilla then "www" directory found at /var/lib/openshift/54216b58500444bb9d0009d0/app-root/repo/php/ But now there no such structure exist i think may openshift change directory structure. My question is where i upload my code? so that my scalable app work seamless

1

There are 1 best solutions below

2
On

You can find the path to your code by looking at OPENSHIFT_REPO_DIR environment variable. So doing an echo $OPENSHIFT_REPO_DIR should print the path to your code.

But please remember that the only directory that is persistent accross deployments is the data directory (OPENSHIFT_DATA_DIR). Any change you make in other place will be lost on your next deployment.

Read more about directory variables.