similar to: Dev and production modes

Displaying 20 results from an estimated 10000 matches similar to: "Dev and production modes"

2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a page with a serialized attribute: ActiveRecord::SerializationTypeMismatch (answers_container was supposed to be a Array, but was a NilClass): /vendor/rails/activerecord/lib/active_record/base.rb:1964:in `unserialize_attribute'' In development, it works fine. In fact, if I set to false config.cache_classes in
2006 Mar 31
5
Model reloading problem
Hi all, I''ve a model class Toto in the model directory. I don''t understand why i have to restarts WebBrick to view changes i make in this class FYI : in the development. rb i desabled class cache with config.cache_classes = false Regards Luciano -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Sep 18
2
change_table is not working on production server
Hi, I have added to my migration a change_table action. It works fine on my local dev machine, but on the production server the migration does not happen although the schema.rb file gets correctly updated. I am running Rails 2.1.1 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2008 Apr 30
12
Strange memory issue
Like most, I have a test and a production env. Both are CentOS 5, Ruby 1.8.6, Rails 2.0.2, MySQL 5, and Apache. Both were setup using the same procedure. Except for the hardware (test: Intel, prod: AMD) and memory (test: 512M, prod: 1G), both systems are essentially the same right down to the Rails env. Unfortunately, memory usage is very different for each. The test system has 2 mongrel
2007 Mar 24
6
Rails Development Log
Hi, I am using Ruby+Rails with Mongrel. Is there any way to disable logging so that everytime I start rails (mongrel_rails start), it doesn''t automatically start logging info to development.log Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2005 Dec 23
5
Can''t get data from products into @order
I went throught the "agile web developemnt with rails" and Now I''m trying to ''enhance'' the code with some extra options. When I go to admin/shipping I want to include some data from the products table in with the order info listed. I can''t seem to get this to work. in my partial form I''m trying to add this: <td
2008 May 14
7
A copy of XX has been removed from the module tree but is still active!
I have a class in my /lib/ directory called tracker.rb It''s function is to receive an array of URLs and then perform 4 separate tasks on each URL Each of the 4 tasks gets it''s own thread. the class is called from my controller like: output = Tracker.go([array_of_urls]) Sometimes, when it hits an exception, instead of just dieing gracefully, my logs repeatedly display: A
2012 Jun 21
2
Rails production load order giving uninitialized constant (NameError)
Hi, I have a related but separate question. Again, please redirect me if I''m in the wrong place. I''ve been getting this error in production (on Heroku) only (it happens when the application is loading): 2012-06-21T09:30:19+00:00 app[web.1]: /app/app/controllers/spree/ checkout_controller_decorator.rb:3:in `block in '': uninitialized constant
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of ways but I get all kinds of weird errors, as
2006 Jul 25
3
Question about how Mongrel process works with singletons
Hi, I have a controller where I access a singleton class that I use to connect to a DRbprocess DrbConnector.instance.some_method I notice that on every request, the constructor is called so it is making a new instance of this singleton. Is this normal? Thanks, Curtis
2005 Dec 14
5
samba recycle bin
Hi all, can anyone tell me how i can setup a recycle bin for my samba share? it will be a very very good for me.. please give me the steps or please point to any document.. Thank you in advance, Jerrynikky.
2009 Apr 23
1
Constants defined in initializer not found when running gems:install in test
Dear all, I am setting some constants in an initializer, which are used in validations in my models. When I run RAILS_ENV=test rake gems:install I get missing constant errors for these, but not when I run RAILS_ENV=development rake gems:install It only happens for the gems:install task in test. Everything else (e.g. rake test) works as expected. What could be the problem? Thanks for your
2009 Mar 05
7
issue with the object cache
Hi, I am getting a method_missing error when I run my application in the production environment unless I set config.cache_classes = false in config/environments/production.rb. This happens in Rails 2.2.2 but not in Rails 2.1.0. The method that is missing is one I used to have before I edited by hand the migration that creates the table associated with the object (I know you are discouraged to do
2006 Jul 25
1
Can I use Production mode but with Dev type characteristics?
Hi, I have a local development environment and remote production environment, however I am really just learning/playing, hence I would like to be able to define these environments separately in the config files, however.... I would like my production environment to really act in a development mode fashion at the moment (i.e. sense updates I make without any need to restart things etc). Is
2010 Oct 11
5
Object lost in memory/trashed?
Hi, I''ve got a problem on which I''ve spent many hours, and I can''t get a clue on what is happening... I hope someone here will be able to help me. Here is the situation : my Rails app uses acts_as_commentable and acts_as_bookmarkable on a Diagram model. Everything''s working OK individually: I can create a comment on a Diagram, bookmark it, and so on. Now,
2006 Feb 20
3
Caching of classes non working or Howto?
Hello! I m new to rails. I m playing around with it on a SuSE 10.0 box with ruby 1.8.2 and gems and rails and postgres. rails xyz creates a nice rails application, with its directory and ruby script/server runs webrick nicely and lets me see the page on localhost:3000. I went with some tutorial to create a Hello page showing the time and a Bye-Link to link to an Bye page. cat
2009 Dec 05
7
ActionMailer dont function with JRuby?
I have application that i send email normal with native ruby. But when i execute the sample application with jruby, it dont send email and dont get error. What can be wrong? -- Atenciosamente, Paulo Coutinho. Blog: www.prsolucoes.com/blog Site: www.prsolucoes.com Msn: paulo-QE/7f1ia5mR0ubjbjo6WXg@public.gmane.org -- You received this message because you are subscribed to the Google Groups
2010 Jun 02
10
Session, memory_store & NoMethodError
Hy everybody, first, excuse me for my english, I''m french (sorry for that :D). My actual problem is that I encountered a [b]NoMethodError[/b] when I tried to access to a session value that is not nil. I''m doing some ajax calls and I afffect the key/value and access to session variable in the same controler "injection_controller.rb". I also access to session in a view
2006 Mar 02
3
What am I missing?? Activerecord & Sessions!!
Can someone please explain why every time that I call an action in my controller, every model that is stored in the session needs to be interpreted by a database query? If I have four models stored in the session, I end up with five long "SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d....." queries when *ANY*
2009 May 25
1
Deploying Rails project
Hello Everyone, I am new into web developemnt and want to use Ruby on Rails for my project.Recently I have bought WebHosting Space with Linux OS and Apache Server but it seems they do not provide Rails hosting. Is it possible that i install webrick or mongrel (which is better ?) and install rails and deploy my application there. Kindly give me step by step guide for doing this Thanks and Regards