在Bluemix上部署Cloudfoundry meteor buildpack

时间:2015-08-04 06:22:14

标签: cloudfoundry ibm-cloud buildpack

我试图按照cloudfoundry meteor buildpack的说明部署到bluemix上(参见https://github.com/cloudfoundry-community/cf-meteor-buildpack)。它失败了以下消息:

-----> Downloaded app package (2.7M)
Cloning into '/tmp/buildpacks/cf-meteor-buildpack'...
fatal: unable to access 'https://gitub.com/cloudfoundry-community/cf-meteor-buildpack.git/': Failed connect to gitub.com:443; Operation now in progress
Cloning into '/tmp/buildpacks/cf-meteor-buildpack'...
fatal: unable to access 'https://gitub.com/cloudfoundry-community/cf-meteor-buildpack.git/': Failed connect to gitub.com:443; Operation now in progress
/var/vcap/packages/dea_next/buildpacks/lib/git.rb:23:in `clone': Git clone failed: git clone --recursive https://gitub.com/cloudfoundry-community/cf-meteor-buildpack.git /tmp/buildpacks/cf-meteor-buildpack (RuntimeError)
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:154:in `clone_buildpack'
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:120:in `build_pack'
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:83:in `block in compile_with_timeout'
        from /usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:82:in `compile_with_timeout'
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:58:in `block in stage_application'
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:53:in `chdir'
        from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:53:in `stage_application'
        from /var/vcap/packages/dea_next/buildpacks/bin/run:10:in `<main>'

a&#39; git clone git@github.com:cloudfoundry-community / cf-meteor-buildpack.git&#39; 成功访问存储库。

由于

1 个答案:

答案 0 :(得分:0)

要使用Meteor buildpack,您需要一个Meteor应用程序。如果您想使用样本,请运行以下命令。

#create example app
meteor create --example leaderboard
cd leaderboard
#upload app to bluemix
cf push leaderboard-changeme -b https://github.com/cloudfoundry-community/cf-meteor-buildpack.git --no-start
#create a db
cf create-service mongolab sandbox leaderboard-mongolab
#attach the db to the app
cf bind-service leaderboard-changeme leaderboard-mongolab
#start the app
cf start leaderboard-changeme

您需要使用应用的唯一名称替换leaderboard-changeme。

如果您有现有的Meteor应用程序,则只需运行cf push leaderboard-changeme -b https://github.com/cloudfoundry-community/cf-meteor-buildpack.git --no-start即可。如果您使用数据库,请使用上述命令创建数据库并将其附加到您的应用程序。