search for: my_app

Displaying 20 results from an estimated 48 matches for "my_app".

2009 Jun 03
3
System V Init Script
...ing an issue. I have pasted the code below from my "restart" clause but from what I can tell, it is killing the app but not restarting it, I think because the killing process is still in action so when it start the app again it just gets killed straight away. If I enter "/etc/init.d/my_app restart" the app is terminated but does not start again, entering "/etc/init.d/my_app start" immediately after fires it up straight away so there is no problem there; can someone suggest a better way as my scripting is very begginnerish (if thats a word) and I don't doubt for a s...
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...idn''t start the BDRb server manually, I got: * executing `after_update_code'' * executing `set_env_staging'' ENV[''RAILS_ENV''] = staging * executing `restart_backgroundrb'' * executing `stop_backgroundrb'' * executing "cd /var/www/apps/my_app/releases/20080501133415 && ./ script/backgroundrb -e staging stop" servers: ["staging.my_app.com"] [staging.my_app.com] executing command ** [out :: staging.my_app.com] ./script/backgroundrb:46:in `initialize'' ** [out :: staging.my_app.com] : ** [out :: staging....
2010 Sep 02
1
Error No such file or directory
Hi, I have a website deployed on heroku, but my local git repository was ereased, so I m trying to create a new local repository pulling my deployed site. I run : git clone -o heroku git-Vgi1d2+GxVTQT0dZR+AlfA@public.gmane.org:my_app.git, but now when I run script/server I get this error msg: pedro@ubuntu:~/proj/my_app$ script/server => Booting WEBrick => Rails 2.3.8 application starting on http://0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:902:in `read'': No such file or directory - /...
2006 Jan 27
6
Switchtower deploy error
...witchtower-0.10.0 /lib/switchtower/recipes/standard.rb loading configuration ./config/deploy.rb executing task deploy transaction: start executing task update_code querying latest revision... [update_code] transaction: rollback [update_code] rolling back executing "rm -rf /home/[my_user]/apps/[my_app]/releases/20060127192840" servers: ["www.[my_server].com"] Password: ******* processing command [www.[my_server].com] executing command command finished rake aborted! No such file or directory - svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk ------------------- But i...
2007 Feb 02
3
rails command version pegging?
Hello, Is it possible to declare the version of Rails used with the seminal "rails /path/to/my_app" command? For example, I now have 1.2.1 and 1.1.6 installed on my machine. If I run "rails my_app" I get 1.2.1 produced skeleton code. Is there a way to get 1.1.6 results? Regards, Andy Koch --~--~---------~--~----~------------~-------~--~----~ You received this message bec...
2006 Jan 28
1
Switchtower different svn repo urls from my local box and my shared hosting
I got problems running switchtower 0.10.0 when I try to run "rake deploy" from my local box (windows) to my shared hosting If I set the repository to (deploy.rb): set :repository, "file:///home/[my_user]/repo/[my_app]/trunk" My local box (windows) can''t reach the subversion repository located in site5 If I set the repository to: set :repository, "svn+ssh://[my_user]@[my_site]/home/[my_user]/repo/[my_app]/trunk/" I got a "permission denied" when svn run in my shared hosting...
2010 Nov 09
2
Undefined method
I am very new to ROR. (Ruby 1.8.7, rails 2.1.1, rack 0.8.7, mysql 5.1.41) I has my_app/lib/migration_helpers.rb file: module MigrationHelpers def self.foreign_key(from_table, from_column, to_table) constraint_name = "fk_#{from_table}_#{to_table}" execute %{alter table #{from_table} add constraint #{constraint_name} foreign key (#{from_column})...
2013 Feb 03
4
Create a helper for models and views?
Hi! If I have a method that is useful in both models and in views, where would be the appropriate place to put it? The method in question just takes two dates as strings, tries to parse them and returns all dates in the range between them. It also takes care of the issues when the dates are badly formatted etc etc.. This method is being used in several models (so a simple class method in
2008 Apr 17
4
acts_as_paranoid is making me crazy
...and a base admin) it works well. Even after minimizing the data that is inserted on the migration to one record it still throws the same error. When running the migrate with the --trace option I get the following: ========= rake aborted! stack level too deep /Users/chris/Documents/Projects/Rails/my_app/vendor/plugins/acts_as_paranoid/init.rb:4:in `belongs_to_without_deleted'' /Users/chris/Documents/Projects/Rails/my_app/vendor/plugins/acts_as_paranoid/init.rb:4:in `belongs_to_without_deleted'' /Users/chris/Documents/Projects/Rails/my_app/vendor/plugins/acts_as_paranoid/init.rb:4:i...
2010 Feb 12
2
log access denied
...fine. Now when I run script/server, this is what I get: => Booting Mongrel => Rails 2.3.5 application starting on http://0.0.0.0:3000 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/logger.rb:518:in `initialize'': Permission denied - /Users/chief/ Documents/my_app/log/acts_as_ferret.log (Errno::EACCES) Please help. Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe...
2007 Aug 02
2
Do the :attributes and :content matchers work
...39;, :attributes => {:bug => "here", :another_bug => ''there''} ) end I am calling render :partial => ''/bug/div'' in the before :each block. As I said I would expect this to fail but it does not. I am trying this because in the <my_app>/vendor/plugins/rspec_on_rails/spec/rails/dsl/view_spec_spec.rb file there is an example describe "A view that includes a partial using :collection and :spacer_template", :behaviour_type => :view do before(:each) do render "view_spec/partial_collection_including...
2008 Feb 01
2
wxruby2 problems
Hello, I''ve recently installed wxruby2 (version 1.9.4) from a precompiled mswin32 gem. It seems to work fine, and the samples in the distribution all work, but I have a couple of peculiar problems: 1) When I package a trivial wxruby script with rubyscript2exe, the executable is huge - 8.5 MB. With previous versions of wxruby (prior to wxruby2, I think) it was much smaller. Less than 3
2006 Jul 29
1
Problem starting push server in Jugganaut
Hi All, Im playing around with Jugganaut but stuck at the first step. Seems the jugganaut push server requires json (which I have installed) but it cant find it. Following the docs, I have installed json and then try to run the push server. jonathan $ ruby script/push_server script/push_server:37:in `require'': no such file to load -- json (LoadError) from
2012 Sep 28
5
Custom ruby gem continuously updates
...run, it installs correctly. A ''gem list'' shows it as: sapnwrfc (0.24 x86_64-linux) However, every subsequent checkin with the master results in: Thu Sep 27 20:07:34 -0700 2012 Puppet (notice): Starting Puppet client version 2.7.19 Thu Sep 27 20:07:49 -0700 2012 /Stage[main]/my_app/Package[sapnwrfc-0.24]/ensure (notice): created Thu Sep 27 20:07:53 -0700 2012 Puppet (notice): Finished catalog run in 12.90 seconds I''ve tried changing the ensure from ''installed'' to ''0.24'', ''0.24 x86_64-linux'', etc. to no avail......
2013 May 31
22
accidentally created a rails app in the home folder
Im a new user - I just installed rails, following directions here: http://rubyonrails.org/download however, when it came time to make a rails new path/etc/etc I get this message: Can''t initialize a new Rails application within the directory of another, please change to a non-Rails directory first. The only complication during the download was that I had to upgrade from version 1.8.6 to
2005 Dec 29
0
newb queston to fellow Railians
I get stuct at this...i get this message when i load my site...give me some idea how to fix it... MissingSourceFile in <controller not set>#<action not set> No such file to load -- ../my_app/cookbook/script/../config/../config/routes.rb RAILS_ROOT: ../my_app/cookbook/script/../config/.. when rails generate the script i don''t have file routes.rb. thanks in advance. -- Posted via http://www.ruby-forum.com/.
2007 Aug 28
1
what''s the view format in trunk?
...d render the view: def new @photo = Photo.new respond_to do |format| format.html { render } end end and in my app/views folder I have an upload folder and inside it a new.html.erb file but it doesn''t get picked up. No template matched /Users/matta/rails_projects/my_app/trunk/upload_manager/app/views/upload/new.{} I tried adding a .herb file and .html but it didn''t help. Thanks, -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070828/2ee8e56c/attachment.html
2012 Oct 16
0
Rails 3 + fb_graph how to get access token to post to my own Facebook page
I am using Rails 3 + fb_graph to post to my own Facebook page. I have code that works, but it uses an access token that only works for a couple of hours. And it is very annoying to refresh this access token a couple of times a day. So I registrated for a FB app. I now have: my_app = FbGraph::Application.new("App ID"); acc_tok = my_app.get_access_token("App Secret"); me = FbGraph::User.me(acc_tok) me.fetch me.accounts account = me.accounts.select {|account| account if account.name == "BoaJobs.com"}.first page = FbGraph::Page.new(acco...
2010 Oct 23
4
Could not find 'sqlite3-ruby' error in Ubuntu
...e message is: *Could not find gem ''sqlite3-ruby (>= 0, runtime)'' in any of the gem sources.* *Try running `bundle install`* I have *Ubuntu* Linux. ruby -v = *1.9.2p0* gem -v = *1.3.7* rails -v = error message again, 2 hours ago it was "rails 3" If I type "rails my_app" it does not work, if I type "*rails new my:app, it works*, which means Rails 3 is running and working well if I want to create an app, but does not, if I want to use "rails server". I googled it, unfortunately not any updated and linuxbased answer which I could trust in. &quo...
2009 Oct 05
4
Friendly_id and Rake problem.
Hello there, The plugin friendly_id (http://github.com/norman/friendly_id) has rake tasks that you can call. I''m using this plugin as a gem. I''m trying this: rake friendly_id:make_slugs MODEL=Post and it is rising this error: Don''t know how to build task ''friendly_id:make_slugs'' So the question is: how do I call a gem''s rake task? David