访问远程文件Openshift

bal*_*gan 1 wordpress openshift

我是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]\> 
Run Code Online (Sandbox Code Playgroud)

在这里,我想知道如何访问xxxx/wp-content/...

bjw*_*ebb 6

Openshift应用程序主要使用git进行更改和部署,请参阅https://www.openshift.com/developers/deploying-and-building-applications

编辑:创建项目应该给你一个git url.由于你正在使用windows,你可以使用tortoisegit来获取它并进行更改.wp-content位于git存储库的php目录中.

或者:你拥有的ssh登录是一个标准的linux shell,你可以使用标准的linux shell工具在app-root/data目录中添加插件/主题.

[ ... ]\> cd app-root/data
[ ... data ]\> ls
blogs.dir  plugins  themes  uploads
Run Code Online (Sandbox Code Playgroud)

您甚至可以使用WinSCP等程序使用您已有的SSH URL将文件上传到这些目录.