2.コマンドのヘルプを確認(以下のコマンドで一通り出てくる)C:\>vmc login
Email: メールでもらったアカウント
Password: ********
Successfully logged into [http://api.cloudfoundry.com]
C:\test>vmc -h3.手順書のRubyのスクリプトを作る
C:\test>more test.rb
require 'sinatra'
get '/' do
"Hello from FTMOON Cloud Foundry test update2"
end
4.アップロード
C:\test>vmc push
Would you like to deploy from the current directory? [Yn]:
Application Name: ftmoon
Application Deployed URL: 'ftmoon.cloudfoundry.com'?
Detected a Sinatra Application, is this correct? [Yn]:
Memory Reservation [Default:128M] (64M, 128M, 256M, 512M, 1G or 2G)
Creating Application: OK
Would you like to bind any services to 'ftmoon'? [yN]:
Uploading Application:
Checking for available resources: OK
Packing application: OK
Uploading (0K): OK
Push Status: OK
Staging Application: OK
Starting Application: OK
Would you like to deploy from the current directory? [Yn]:
Application Name: ftmoon
Application Deployed URL: 'ftmoon.cloudfoundry.com'?
Detected a Sinatra Application, is this correct? [Yn]:
Memory Reservation [Default:128M] (64M, 128M, 256M, 512M, 1G or 2G)
Creating Application: OK
Would you like to bind any services to 'ftmoon'? [yN]:
Uploading Application:
Checking for available resources: OK
Packing application: OK
Uploading (0K): OK
Push Status: OK
Staging Application: OK
Starting Application: OK
5.表示確認
ここで確認可能
アップロードしただけで、ちゃんと表示されてる。ちょっとスゴイ。
0 件のコメント:
コメントを投稿