Reputation: 1328
I am using OpenShift with Tomcat 7. I am trying to scp a directory into webapps. I search online and the recursion option is -r. However, when I type rhc help scp, the -r option is
-r, --remote-path file_path Remote filesystem path
So is there a recursion option for scp in OpenShift? How can I upload a directory in OpenShift?
Any help would be much appreciated. Thank you.
Upvotes: 2
Views: 978
Reputation: 1212
scp localfile gearnumber@myapp.rhcloud.com:app-root/data
scp localdir -r gearnumber@myapp.rhcloud.com:app-root/data
The only directory where your user has write permission is app-root/data
, you can reference it from your code with the environment variable OPENSHIFT_DATA_DIR
Upvotes: 5