ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Development environment very slow performance

Added by Mauro Morales at 2012-09-17 12:40 pm

Hello everyone!

I'm new to using ChiliProject. I was able to set up a production box and its running sweet :) now I want to start doing some modifications and adding some plugins in order to adapt it better to our needs but I'm really struggling with the performance when I run the development environment.

I'm using ruby 1.9.3, postgresql 9.1.4, unicorn_rails 4.3.1, OSX 10.8

Thanks!


Replies (4)

RE: Development environment very slow performance - Added by Felix Schäfer at 2012-09-17 01:51 pm

The development environment pretty much reloads everything from disc on each request (as opposed to production where most classes/views are cached), so it is "normal" that it's slow. I'd consider something around up to 2-3 seconds to be "normal".

RE: Development environment very slow performance - Added by Mauro Morales at 2012-09-17 02:18 pm

Yes that sounds pretty much like the time it takes for me.

Ok no problem, any suggestions on how you do your development so you don't spend that much time waiting? I'm thinking I might not be approaching my problem the right way ... all I want to do is create some plugins don't need to modify anything from the core

RE: Development environment very slow performance - Added by Felix Schäfer at 2012-09-17 02:32 pm

Well, there's 2 things you can do:

- Configure your local production environment to be as log-verbose as development and just use the production environment for browser-testing, note though that the whole reloading you get in development also applies to plugins, so that will mean cycling (stopping + starting) your rails server each time you've done changes,
- Use tests and forego the browser-testing part (or at least most of it).

I generally use tests, development mode for prototyping/trying stuff, and production mode with the same DB as development for more "final" testing.

RE: Development environment very slow performance - Added by Mauro Morales at 2012-09-17 02:36 pm

Thanks for the tips :) I'll give it a try!

(1-4/4)