Note: Run this script as the root
user (no sudo calls are used in the script).
You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:
zypper --non-interactive install curl
Executing curl http://localhost/nginx_status | |
** [out :: [email protected]] [Wed, 11 Jan 2012 00:40:33 -0500] DEBUG: ---- Begin output of curl http://localhost/nginx_status ---- | |
** [out :: [email protected]] [Wed, 11 Jan 2012 00:40:33 -0500] DEBUG: STDOUT: <html> | |
** [out :: [email protected]] <head><title>404 Not Found</title></head> | |
** [out :: [email protected]] <body bgcolor="white"> | |
** [out :: [email protected]] <center><h1>404 Not Found</h1></center> | |
** [out :: [email protected]] <hr><center>nginx/1.0.10</center> | |
** [out :: [email protected]] </body> | |
** [out :: [email protected]] </html> |
$ sudo cd /some/path | |
sudo: cd: command not found |
/Users/toamitkumar/.rvm/gems/ruby-1.8.7-p334@ggih/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:470:in `assert_no_example_groups_defined': RSpec's mock_framework configuration option must be configured before any example groups are defined, but you have already defined a group. (RSpec::Core::Configuration::MustBeConfiguredBeforeExampleGroupsError) | |
from /Users/toamitkumar/.rvm/gems/ruby-1.8.7-p334@ggih/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:168:in `mock_framework=' | |
from /Users/toamitkumar/.rvm/gems/ruby-1.8.7-p334@ggih/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:142:in `mock_with' | |
from /Users/toamitkumar/development/rails_apps/deep-fog-4594/spec/spec_helper.rb:19 | |
from /Users/toamitkumar/.rvm/gems/ruby-1.8.7-p334@ggih/gems/rspec-core-2.7.1/lib/rspec/core.rb:71:in `configure' | |
from /Users/toamitkumar/development/rails_apps/deep-fog-4594/spec/spec_helper.rb:11 | |
from /Users/toamitkumar/.rvm/gems/ruby-1.8.7-p334@ggih/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:23 |
Amit-Kumars-MacBook-Pro:cytosite toamitkumar$ git remote -v | |
heroku [email protected]:radiant-cloud-8241.git (fetch) | |
heroku [email protected]:radiant-cloud-8241.git (push) | |
origin [email protected]:toamitkumar/cytosite.git (fetch) | |
origin [email protected]:toamitkumar/cytosite.git (push) | |
Amit-Kumars-MacBook-Pro:cytosite toamitkumar$ git remote rm heroku | |
Amit-Kumars-MacBook-Pro:cytosite toamitkumar$ git remote -v | |
origin [email protected]:toamitkumar/cytosite.git (fetch) |
Amit-Kumars-MacBook-Pro:cytosite toamitkumar$ heroku create | |
Creating radiant-cloud-8241... done, stack is bamboo-mri-1.9.2 | |
http://radiant-cloud-8241.heroku.com/ | [email protected]:radiant-cloud-8241.git | |
Git remote heroku added | |
Amit-Kumars-MacBook-Pro:cytosite toamitkumar$ git push heroku master | |
! No such app as radiant-cloud-8241. |
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.0.9, 3.0.6) | |
actionpack (3.0.9, 3.0.6) | |
activemodel (3.0.9, 3.0.6) | |
activerecord (3.0.9, 3.0.6) | |
activerecord-sqlserver-adapter (3.0.15) | |
activeresource (3.0.9, 3.0.6) | |
activesupport (3.0.9, 3.0.6) |
# Checks whether it's a devise mapped resource or not. | |
def is_devise_resource? #:nodoc: | |
raise ActionController::UnknownAction unless devise_mapping | |
end | |
# And also | |
# Attempt to find the mapped route for devise based on request path | |
def devise_mapping | |
@devise_mapping ||= request.env["devise.mapping"] |
require 'spec_helper' | |
class SessionsController < Devise::SessionsController | |
def index | |
session[:current_client] = "some value set in session" | |
session[:some_other_value] = "some other value in session" | |
render :nothing => true | |
end | |
end |
class SessionsController < Devise::SessionsController | |
def destroy | |
reset_session | |
super | |
end | |
end | |
# In your routes | |
devise_for :users do |