For OpenShift:
I created a test directory in ~ app-root/repo/data.
I also have locally ‘myapp'/data directory. I can push up to OpenShift with git. My test files upload fine which I can check with ssh.
Now I create a file with nano or vim remotely –file named remoteFileVim The files exists in the repo/data directory. When I do git pull locally, I dont see that file remoteFileVim.
I created a second file in app-root/data called secondVimFile, How do I pull this file to local machine. Can I use git? I have python 2.6, cron, mysql loaded on Openshift, if that helps.
If you can ssh into the machine, you should be able to read or write files using
scp.Simply placing new files within your Openshift gear’s
~/app-root/repo/folder will not cause the files to be included (checked in to) your revision control system. Normally, you should be usinggit commitandgit pushto make the majority of the changes to your app locally, then follow up by pushing those changes to your OpenShift gear.If your app needs on-disk storage, or access to additional content such as secret tokens and keys that you would prefer to keep out of your source code – you can place this content in your
~/app-root/datafolder. This directory is not effected by deployments, and has been set aside for your app’s local disk storage needs.