WordPress插件未部署到OpenShift



在OpenShift上设置WordPress网站后,我尝试从本地存储库上传新插件,但没有将任何内容上传到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应用程序后,看起来我的插件没有上传。这里可能出了什么问题?

谢谢

好吧,出现是git subpodule问题。

尝试明确将新文件添加到回购中,导致以下错误:

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

最新更新