Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. (master) % vmc apps
  2. No applications available.
  3. (master) % ls
  4. foo.rb
  5. (master) % cat foo.rb
  6. require 'rubygems'
  7. require 'sinatra'
  8.  
  9. get '/' do
  10. host = ENV['VMC_APP_HOST']
  11. port = ENV['VMC_APP_PORT']
  12. "<h1>Hello from the Cloud! via: #{host}:#{port}</h1>"
  13. end
  14. (master) % vmc push fu
  15. Would you like to deploy from the current directory? [Yn]:
  16. Application Deployed URL: 'fu.vcloudlabs.com'?
  17. Simple Sinatra application detected in foo.rb.
  18. Memory Reservation [Default:128M] (64M, 128M, 256M or 512M) 64M
  19. Uploading Application Information.
  20. Uploading Application.
  21.  
  22. Uploaded Application 'fu' (0K).
  23. Push completed.
  24. Trying to start Application: 'fu'.
  25. .
  26. Application 'fu' started.
  27. (master) % vmc instances fu 5
  28. Scaled 'fu' up to 5 instances.
  29. (master) % vmc instances fu
  30. Index State Since
  31. -- -------- -------------
  32. 0 RUNNING 11/09/2010 02:05PM
  33. 1 RUNNING 11/09/2010 02:05PM
  34. 2 RUNNING 11/09/2010 02:05PM
  35. 3 RUNNING 11/09/2010 02:05PM
  36. 4 RUNNING 11/09/2010 02:05PM
  37. (master) % vmc instances fu 3
  38. Scaled 'fu' down to 3 instances.
  39. (master) % vmc instances fu
  40. Index State Since
  41. -- -------- -------------
  42. 0 RUNNING 11/09/2010 02:05PM
  43. 1 RUNNING 11/09/2010 02:05PM
  44. 2 RUNNING 11/09/2010 02:05PM
  45. (master) % vmc instances fu 1
  46. Scaled 'fu' down to 1 instance.
  47.  
  48. (master) % vmc stats fu
  49. Instance CPU (Cores) Memory (limit) Disk (limit) Uptime
  50. --------- ----------- -------------- ------------ ------
  51. 0 0.3% (8) 21.5M (64M) 44.0K (2G) 0d:0h:1m:5s
Add Comment
Please, Sign In to add comment