Giter Club home page Giter Club logo

cf-console's Introduction

CF-Console

CF-Console is an easy-to-use web-based interface for your Cloud Foundry v1 instances.

IMPORTANT: This console doesn't manage the new Cloud Foundy v2 (or ng) instances.

Deploy to CloudFoundry

git clone git://github.com/frodenas/cf-console.git
cd cf-console
bundle
bundle exec rake assets:precompile
vmc push --runtime ruby19
# press Enter for all defaults

Installation

No DB required, just clone the project and start the server:

  • git clone git://github.com/frodenas/cf-console.git
  • bundle install
  • thin start <- It must be an app server with EventMachine and Ruby 1.9 support (e.g. Thin or Rainbows!)

If you plan to deploy this app to a production environment:

  • Set your brand details and Cloud Foundry providers at /config/configatron/defaults.rb
  • Insert your Google Analytics Web Property ID (UA-XXXXX-X) at /app/assets/javascripts/application.js
  • Change the secret token at /config/initializers/secret_token.rb
  • Remove "= render "layouts/forkapp"" at /app/views/layouts/application.html.haml
  • precompile the assets -> RAILS_ENV=production rake assets:precompile
  • enable "config.middleware" option at /config/application.rb to enable async http calls

Testing

In order to test the application, a suite of RSpec tests are provided. You don't need to have a Cloud Foundry instance running in order to pass the tests, as pre-recorded HTTP interactions are also provided thanks to VCR.

So just type:

rake spec

Contributing

In the spirit of free software, everyone is encouraged to help improve this project.

Here are some ways you can contribute:

  • by using alpha, beta, and prerelease versions
  • by reporting bugs
  • by suggesting new features
  • by writing or editing documentation
  • by writing specifications
  • by writing code (no patch is too small: fix typos, add comments, clean up inconsistent whitespace)
  • by refactoring code
  • by closing issues
  • by reviewing patches

Submitting an Issue

We use the GitHub issue tracker to track bugs and features. Before submitting a bug report or feature request, check to make sure it hasn't already been submitted. You can indicate support for an existing issue by voting it up. When submitting a bug report, please include a Gist that includes a stack trace and any details that may be necessary to reproduce the bug, including your gem version, Ruby version, and operating system. Ideally, a bug report should include a pull request with failing specs.

Submitting a Pull Request

  1. Fork the project.
  2. Create a topic branch.
  3. Implement your feature or bug fix.
  4. Add specs for your feature or bug fix.
  5. Run rake spec. If your changes are not 100% covered, go back to step 4.
  6. Commit and push your changes.
  7. Submit a pull request.

Authors

By Ferran Rodenas [email protected]

Copyright

See LICENSE for details. Copyright (c) 2011 Ferran Rodenas.

cf-console's People

Contributors

achied avatar corlettb-bskyb avatar drnic avatar frodenas avatar troytop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cf-console's Issues

add chinese language hava a error

at index,error display: "
We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.
"? what happend?

Faraday: you may want to install system_timer for reliable timeouts

when I push cf-console to local vcap or cloudfoundry.com , is starts with error:

====> /logs/stderr.log <====

Faraday: you may want to install system_timer for reliable timeouts
/var/vcap/data/dea/apps/jcloud-console-0-32f266604128ca960cb9c7462d579379/app/rubygems/ruby/1.8/gems/rack-fiber_pool-0.9.2/lib/fiber_pool.rb:5:in `require': no such file to load -- fiber (LoadError)

I'm using rails 3.2.8๏ผŒ ruby 1.9.3

Unable to Git Clone. Error code 128

Hi,
I am trying to deploy and app through github with the cf-console, but when I try to do it, i get this error.

Unable to Git Clone. Error code 128

Stack level is too deep

Latest build from git, default config, ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux], Thin 1.5.0, Ubuntu 11.10 x64.
I got this in browser:

SystemStackError in Sessions#new

Showing /home/cf/cf-console/app/views/layouts/_head.html.haml where line # raised:
stack level too deep
(in /home/cf/cf-console/app/assets/stylesheets/application.scss)

Extracted source (around line #):

Trace of template inclusion: app/views/layouts/application.html.haml

Rails.root: /home/cf/cf-console
Application Trace | Framework Trace | Full Trace
sprockets (2.1.3) lib/sprockets/context.rb:180
Request

Parameters:
{"locale"=>"en"}

Show session dump
_csrf_token: "lhQ7XKm8VZcB/khXncjHePBmnOAgwX6FQlR9IqP7JWA="
session_id: "53be0959e40eb52311601874aedeb0f8"

Show env dump
GATEWAY_INTERFACE: "CGI/1.2"
HTTP_ACCEPT: "text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1"
HTTP_ACCEPT_ENCODING: "gzip, deflate"
HTTP_ACCEPT_LANGUAGE: "ru,en-US;q=0.9,en;q=0.8"
HTTP_CACHE_CONTROL: "no-cache"
REMOTE_ADDR: "XXX.XXX.XXX.XXX"
SERVER_NAME: "xxx.xxx.xxx"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:
None

Problem login to Micro CloudFoundry

I can't login to the Micro CloudFoundry through cf-console, I modified:

configatron.available_targets << ["VMware Micro CloudFoundry", "http://api.{Domain}.cloudfoundry.me"]

with my domain, but I'm unable to log in with my email and password..

I'm using Ruby 1.9.3 with Rails 3.2.2,

Thanks, greetings.

Failed to upload files from the git in the development environment.

hi frodenas,

I was trying to create a application to upload file from git in the development environment, the upload failed with an error.

I'm getting the following error

Started GET "/assets/s.gif" for 192.168.170.3 at 2013-02-18 09:24:28 +0900
Served asset /s.gif - 304 Not Modified (0ms)
Exiting
/home/cfdev/repos/origin-cf-console/lib/utils.rb:112:in resume': double resume (FiberError) from /home/cfdev/repos/origin-cf-console/lib/utils.rb:112:inblock in git_clone'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/eventmachine-1.0.0/lib/em/processes.rb:85:in call' from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/eventmachine-1.0.0/lib/em/processes.rb:85:inunbind'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:1435:in event_callback' from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:inrun_machine'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in run' from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/thin-1.5.0/lib/thin/backends/base.rb:63:instart'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/thin-1.5.0/lib/thin/server.rb:159:in start' from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/thin.rb:13:inrun'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:268:in start' from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:70:instart'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:55:in block in <top (required)>' from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:intap'
from /home/cfdev/repos/origin-cf-console/vendor/plugins/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in <top (required)>' from script/rails:6:inrequire'

from script/rails:6:in `'

I was able to upload the settings to take effect "async http calls" of config/application.rb.

You had better async http calls to the default settings in the development environment as well why not?

Ajax error has been happened when loop 120 times to send request to the cloud foundry for getting the app's info

If i try to start an unable to started app which will be only 0 perscent of all instances strated after I click the start link on the applications list screen, an ajax error will be happened. Since checking  the code,I find that the ajax call will be aborted after the request is send to the server client about 30 seconds.What's more, I get the status is 0 ,the readystate is 4 through firebug tool.

Error trying to open console login page

SystemStackError in Sessions#new

Showing /root/src/cf-console/app/views/layouts/_head.html.haml where line # raised:

stack level too deep
(in /root/src/cf-console/app/assets/stylesheets/chosen.scss)
Extracted source (around line #):

Trace of template inclusion: app/views/layouts/application.html.haml

Rails.root: /root/src/cf-console

Application Trace | Framework Trace | Full Trace
Request

Parameters:

{"locale"=>"en"}
Show session dump

Show env dump

Response

Headers:

None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.