简体   繁体   English

您可以通过SSH或FTP将文件上传到CloudControl吗?

[英]Can you upload files to CloudControl via SSH or FTP?

I am new to CloudControl and to git, though I have been programming for a while. 尽管我已经编程了一段时间,但我还是CloudControl和git的新手。

I am just testing CC and setup a test php app, and am using Yii (which I already know). 我只是测试CC并设置一个测试php应用程序,并且正在使用Yii(我已经知道)。 I have the app created, along with a "testing" branch all following this guide: https://www.cloudcontrol.com/dev-center/Guides/PHP/Yii%201.1.10 我已按照此指南创建了应用程序以及“测试”分支: https : //www.cloudcontrol.com/dev-center/Guides/PHP/Yii%201.1.10

I do NOT have the "framework" directory inside my Yii apps directory. 我的Yii应用程序目录中没有“框架”目录。 It is one directory higher, and is recommended that way by Yii (so it is not in the web root). 它是上一级目录,Yii建议采用这种方式(因此不在Web根目录中)。 It would make sense to also not have this framework directory under git, which is why the folder is also not deployed to my cloudcontrol app. 不在git下也没有此框架目录是有道理的,这就是为什么该文件夹也未部署到我的cloudcontrol应用程序的原因。

So my question is, can I FTP or SSH to my CloudControl app to upload this folder manually (so my app can actually run on CC), or do I need to move the folder into my app's directory, put it under git, and deploy it to CC? 所以我的问题是,我可以通过FTP或SSH到我的CloudControl应用程序以手动上传此文件夹(这样我的应用程序实际上可以在CC上运行),还是我需要将该文件夹移到我的应用程序目录中,并将其放在git下,然后进行部署给CC? It can not run at the moment because the Yii framework folder does not exist on my CloudControl app. 由于Yii框架文件夹在我的CloudControl应用程序上不存在,因此目前无法运行。

No, we do not offer SSH or FTP upload because all dependencies have to be part of the image that is built during a Git push. 不,我们不提供SSH或FTP上传,因为所有依赖项都必须是在Git推送过程中生成的映像的一部分。 They are not however required to be in the repository. 但是,不需要将它们放在存储库中。 It is actually recommended to use composer to track your dependencies for PHP. 实际上,建议使用composer来跟踪对PHP的依赖关系。 I see Yii now supports this, so the guide on our site seems a little outdated by now. 我看到Yii现在支持此功能,因此我们网站上的指南似乎有些过时了。

THe PHP Buildpack does support Yii and takes care of setting the webroot. PHP Buildpack确实支持Yii并负责设置webroot。 You can have a look here: https://github.com/cloudControl/buildpack-php It also offers to have custom Apache or PHP configurations if you require a different configuration. 您可以在这里查看: https : //github.com/cloudControl/buildpack-php如果您需要不同的配置,它也可以提供自定义的Apache或PHP配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM