production-environment

Efficient access to HttpServletRequest for debug prints

Hello, In order to debug failing requests I would like to print all information coming from HttpServletRequest. Now, it's possible that a request will partially fail (for ex. Several matches are successful, yet one has failed) in which case I would like to catch the exception in the internal method that failed, print the error + the S...

Serving directory from webserver if its also GIT repo

If the correct security concerns are put in place, is there any reason to not serve a directory that contains a GIT repo of production code. The directory is a webroot of an application but if one uses say Apache to deny access to .git files would there be any reason to not do it this way? ...

Recommended approach how to modify schema of a production SQL database?

Say there is a database with 100+ tables and a major feature is added, which requires 20 of existing tables to be modified and 30 more added. The changes were done over a long time (6 months) by multiple developers on the development database. Let's assume the changes do not make any existing production data invalid (e.g. there are defau...

What are the most useful Runtime tools for exercising and debugging code in the wild?

Hi, After a product is released, we have the need to execute or debug code that has been deployed to the live environment. I tend to use PowerShell to create objects and invoke public functions rather than writing small test applications in C# to perform integration testing on the deployment platform. For debugging, when the source cod...

Rails App Maintenence Without Hindering Visitors

A Phusion Passenger error message isn't what I want my visitors to see if they landed on my site while I'm updating the back end. So how do I get around this? Is my deployment process flawed from the start? or is there something I'm missing out? Here's my process of deployment, so you get the picture: commit new updates to a git rep...

What is the correct way to run a custom ruby script from inside the script directory from Rails application? (Production environment)

link text I tried all of the answers from the above stack overflow post but none of them worked When I replace the #!/usr/bin/env ruby with the #!/path/to/my/script/runner and try to run Rails returns: /var/www/cmgmail/production/releases/20100810151610/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/conne...

Find Stuff (but not in production)

Using the tutorial "Find Stuff (quick and Dirty)" in "Advance Rails Recipes", I can find stuff in the development environment but not in the production environment. NoMethodError: undefined method `searchable_by' I have this code in "lib/searchable.rb" module Searchable def searchable_by(*_column_names) @search_columns = [] ...

Anyone using RavenDB in a production environment?

I'm doing research on the maturity of some document-oriented stores, which includes an overview of applications and websites that use the database in production environments. There are several lists and case studies available for CouchDB and MongoDB, including: CouchDB In The Wild MongoDB Production Deployments I'm having a hard time...

Will enabling XDebug on a production server make PHP slower ?

The title pretty much says it all...is it a bad idea ? I'd like to have the enhanced debug messages that XDebug provides on the server. [edit] Just to make things clear. I'm aware there are security risks involved. Perhaps I should complement my question and give more precise reasons why I would want to do this. Our production server h...

How to do make sure that your testing strategy are good ?

I'm in a situation where i have to ship a product, a php-based product. Sorry for the general information cause what i really need is an general approach, an approach that will work for any php-product. ...

Are there any tools for automatically moving from testing to production servers?

Are there any tools for automatically moving code from testing to (stage and then to) production? We are running on a LAMP stack and don't want to rely on FTP access? Other than that, is there some BASH or PERL script out there for this same process? Our production servers cannot run SVN or HG which we use for development. ...

Best and safest Java Profiler for production use?

I'm looking for a Java Profiler for use in a very high demand production environment, either commercial or free, that meets all of the following requirements: Lightweight integration with code (no recompile with special options, no code hooks, etc). Dropping some profiler specific .jars alongside the application code is ok. Should be ...

possible ways of profiling an asp.net website in a production server?

I have an asp.net website up and running in my production server. I want to get the possible ways of profiling an asp.net website in a production server because my application is really slow? As i say slow i don't mean the delivery of static content but the database operations and my c# code? So any suggestion? ...

Global.asax, can I update it in production server?

I have an asp.net website in my production server which running fine now. Now I am using quartz.net for scheduled tasks and in my development system I have tested it. I want to move it to production server. My global.asax at present in production server: void Application_Start(object sender, EventArgs e) { Application["Hits"] = 0;...

Production usage of compiling Ruby Red to javascript

There has been a lot of discussion over this ability (such as in this SO question, or this github thread) to compile ruby to Javascript. The original version of Red is quite old, but Julius Eckert seems to have picked it up and made it far more usable (and even presented it) After seeing the community backing up compiling other language...

How to recycle my asp.net web application in production server?

I have made changes to my global.asax file so i want to recycle my web application to make the changes work. How to safely recycle my asp.net web application in production server? Any ideas.. ...

Any method for going through large log files?

// Java programmers, when I mean method, I mean a 'way to do things'... Hello All, I'm writing a log miner script to monitor various log files at my company, It's written in Perl though I have access to Python and if I REALLY need to, C (though my company doesn't like binary files). It needs to be able to go through the last 24 hours, ...

Degraded performance on a production machine

On my development machine my application used up about 4-6MB of memory per request. After switching to a production machine those numbers went as high as 21+MB per request, without any speed improvement (0.30 - 1.2 seconds, which I really hoped to improve on my production machine). Some portions of application (like database bootstrappin...

How to run the site from development machine directly on production server without compliing.

I have a site developed in asp.net mvc.Is it posssible to run the site as developed on the developing machine directly on the production server without compilation i.e. in the bin folder I will only have the external dll that will be needed and not the project dll. I will be using SVN:commit the code from the development machine and tak...

Will nginx+paste hold up in a production environment?

I've developed a website in Pylons (Python web framework) and have it running, on my production server, under Apache + mod_wsgi. I've been hearing a lot of good things about nginx recently and wanted to give it a try. Currently, it's running as a forwarding proxy to create a front end to Paste. It seems to be running pretty damn fast.....