WordPress插件未部署到OpenShift

时间:2016-06-19 05:41:37

标签: wordpress openshift

在OpenShift上设置WordPress网站后,我尝试根据this手册从我的本地仓库上传新插件,但没有上传到OpenShift。

步骤我已经完成了:

# cloning WordPress app from OpenShift
rhc git-clone  -a wpdev

# Going to plugins folder on local machine
cd ~/openshift/wpdev/.openshift/plugins

# cloning my plugin from GitHub to openshift plugins folder
git clone https://github.com/samuelsh/youtube-channel-player.git

# standart add/commit/push
git add plugins
git commit -m "youtube-channel-player deploy to openshift"
git push

在openshift上查看我的wpdev应用后,看起来我的插件没有上传。 这里可能出现什么问题?

由于

1 个答案:

答案 0 :(得分:0)

好吧,好像是git子模块问题。

尝试显式添加新文件到repo导致以下错误:

git add .openshift/plugins/youtube-channel-player/*
fatal: Pathspec '.openshift/plugins/youtube-channel-player/admin' is in submodule '.openshift/plugins/youtube-channel-player'

从git中删除目录并再次添加它对我有用:

 git rm --cached directory
 git add directory