我是openshift世界的新手。我安装了wordpress的openshift应用程序。我已经在windows中通过putty ssh配置并连接到应用程序。现在我不知道如何访问应用程序中的文件。帮帮我。
Welcome to OpenShift shell
This shell will assist you in managing OpenShift applications.
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Shell access is quite powerful and it is possible for you to
accidentally damage your application. Proceed with care!
If worse comes to worst, destroy your application with 'rhc app delete'
and recreate it
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Type "help" for more info.
Note: Your application supports version 2 cartridges.
[xxxx-cloudrun.rhcloud.com xxxxxxxxxxxxxx]>
在这里我想知道如何访问xxxx/wp-content/
。。。
Openshift应用程序主要使用git进行更改和部署,请参阅https://www.openshift.com/developers/deploying-and-building-applications
编辑:创建项目应该会给你一个git url。由于您使用的是windows,您可以使用tortoisegit来获取并进行更改。wp内容位于git存储库的php目录中。
或者:您的ssh登录是一个标准的linux shell,您可以使用标准的linux shell工具在app-root/data目录中添加插件/主题。
[ ... ]> cd app-root/data
[ ... data ]> ls
blogs.dir plugins themes uploads
您甚至可以使用像WinSCP这样的程序,使用您已经拥有的SSH url将文件上传到这些目录。
+1到bjwebb!很少有链接可以对你有所帮助。
将FileZilla与OpenShift结合使用:https://www.openshift.com/forums/openshift/access-files-with-filezilla
将SFTP与OpenShift结合使用:http://www.youtube.com/watch?v=g6G-Pkl_fzs
HTH
对linux使用scp或对windows使用pscp
将应用程序添加到系统路径或使用cd转到该目录,然后--
pscp -i pvtkey.ppk source destination
例如
pscp -i pvtkey.ppk my_file_to_upload xxxx-cloudrun.rhcloud.com:/the_path_to_upload_in_openshift_server
要上传目录,请使用-r参数
pscp -i pvtkey.ppk -r my_folder_to_upload xxxx-cloudrun.rhcloud.com:/the_path_to_upload_in_openshift_server
要下载,请反向示例
pscp -i pvtkey.ppk -r xxxx-cloudrun.rhcloud.com:/dir_to_download Path_of_my_pc
pvtkey.ppk是腻子情况下的私钥
在linux中,pvt密钥可以在~/.ssh
上找到
要下载单个文件,请删除-r paramater。
下载pscp的链接http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe