How to access repo directory in a Perl program in Openshift? -


i hit 404 error when use following code in index.pl (i create 1 perl app in account)

my $hello_link = "$env{'openshift_repo_dir'}hello.pl";  click <a href="$hello_link"><font color="ff00cc">here</font></a> run hello world cgi.</br> 

when log web autortl-rdlgen.rhcloud.com , click on ¨here"to run hello program. error message showed

not found

the requested url /var/lib/openshift/550f4df1fcf933b971000030/app-root/runtime/repo/hello.pl not found on server.

i have uploaded hello.pl repo directory , can find after ssh account:

[autortl-rdlgen.rhcloud.com repo]\> ls -tr hello.pl  hello.pl 

you need use relative link "./hello.pl" instead of using other link env variable, showing complete filesystem path perl file.

you may want check out perl tutorials started perl web programming: http://www.tutorialspoint.com/perl/perl_cgi.htm


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -