dongying7847
2014-09-23 09:35
浏览 91
已采纳

Cloudfoundry命令行工具不会推送所有文件

I'm trying to push a simple application to IBMBluemix (Cloudfoundry) but some files are not picket up.

I have a folder containing some files (index.php, test.html, ...). All these are pushed, but my css folder for example is not.

In the root folder containing these files and folders I type:

cf push -m 128M -b https://github.com/dmikusa-pivotal/cf-php-build-pack.git testname

So after this

testname.mybluemix.net/index.php

is accessible, but

testname.mybluemix.net/css/reveal.min.cs

is not.

Any ideas?

Best Regards

Romeo

图片转代码服务由CSDN问答提供 功能建议

我正在尝试将一个简单的应用程序推送到IBMBluemix(Cloudfoundry),但有些文件不是纠察队员。

我有一个包含一些文件的文件夹(index.php,test.html,...)。 所有这些都被推送,但我的css文件夹不是。

在包含这些文件和文件夹的根文件夹中我输入:

  cf push -m 128M -b https://github.com/dmikusa-pivotal/cf-php-build-pack.git testname 
   
 
 

所以在此之后

  testname.mybluemix.net/index.php
   
 
 

可以访问,但 <前> testname.mybluemix.net/css/reveal.min.cs

不是。 < p>有什么想法吗?

最好的问候

Romeo

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • dpstir0081 2014-11-08 09:02
    已采纳

    Thanks a lot! The problem was not files not being pushed. The buildpack I specified just ignored them. Changing the buildpack solved the issue. But I've learned about .cfignore and the -p parameter so the discussion was worth it.

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • dongsheng4679 2014-09-23 14:44

    Have you tried using the -p parameter to let the cli know where your application is living?

    for example if my app is located on my Desktop I would cd to my desktop and do something like this

    cf push testname1 -m 128m -b https://github.com/dmikusa-pivotal/cf-php-build-pack.git -p myApp
    
    评论
    解决 无用
    打赏 举报
  • dougua9328 2014-11-07 19:42

    When you push your app make sure you are in the root directory of your app. (ex. /Users/jsmith/dev/myapp. Make sure you are in the folder that has your index.php file. Also check to make sure there isn't a .cfignore file as well.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题