Questions tagged [production-environment]

A production environment is one in that is exposed to its intended audience in a real-world situation.

1672 questions
316
votes
21 answers

How to set up tmux so that it starts up with specified windows opened?

How to set up tmux so that it starts up with specified windows opened?
satoru
  • 27,201
  • 27
  • 83
  • 126
193
votes
15 answers

Change a Rails application to production

How can I change my Rails application to run in production mode? Is there a config file, environment.rb for example, to do that?
191
votes
12 answers

Separate dev and prod Firebase environment

I am considering using Firebase as MBaaS, however I couldn't find any reliable solution to the following problem: I would like to set up two separate Firebase environments, one for development and one for production, but I don't want to do a manual…
racs
  • 3,174
  • 2
  • 20
  • 25
190
votes
7 answers

config.assets.compile=true in Rails production, why not?

The default Rails app installed by rails new has config.assets.compile = false in production. And the ordinary way to do things is to run rake assets:precompile before deploying your app, to make sure all asset pipeline assets are compiled. So…
jrochkind
  • 20,836
  • 12
  • 51
  • 67
175
votes
6 answers

Ruby on Rails production log rotation

What is the best way to enable log rotation on a Ruby on Rails production app? Is it by using logrotate on the hosting server or is there a set of options to use when initialising logger from the app?
cnikolaou
  • 3,414
  • 4
  • 23
  • 31
167
votes
8 answers

How do I prevent node.js from crashing? try-catch doesn't work

From my experience, a php server would throw an exception to the log or to the server end, but node.js just simply crashes. Surrounding my code with a try-catch doesn't work either since everything is done asynchronously. I would like to know what…
TiansHUo
  • 8,049
  • 6
  • 42
  • 57
135
votes
5 answers

Canary release strategy vs. Blue/Green

My understanding of a canary release is that it's a partial release to a subset of production nodes with sticky sessions turned on. That way you can control and minimize the number of users/customers that get impacted if you end up releasing a bad…
119
votes
5 answers

Webrick as production server vs. Thin or Unicorn?

It seems like it's taken for granted that you must not use Webrick as production server, but I can't really find anywhere mentioning why. The consensus seems to be: "Webrick is ok for development, but Thin or Unicorn is the choice for production,…
Vlad
  • 7,419
  • 11
  • 51
  • 82
101
votes
1 answer

How to configure MongoDB Java driver MongoOptions for production use?

I've been searching the web looking for best practices for configuring MongoOptions for the MongoDB Java driver and I haven't come up with much other than the API. This search started after I ran into the "com.mongodb.DBPortPool$SemaphoresOut: Out…
94
votes
2 answers

What is the difference between production and development mode in Angular2?

For some reason, I have to run my app in production mode. What is the difference between those modes?
Rhushikesh
  • 3,432
  • 8
  • 35
  • 76
90
votes
6 answers

How to tell if rails is in production?

I used script/server -e production to start rails in production mode. It did and I got no errors. However how do I tell if it is in production mode? I tried a non-existent route, and I got a similar error page I did in development. I thought if…
sent-hil
  • 16,955
  • 15
  • 53
  • 71
75
votes
6 answers

Deploying a production Node.js server

I've written a Node.js app, I'm looking to get it running on one of our production machines. This seems like a pretty common request yet I can't find an adequate solution. Is there not established solutions for deploying production Node.js apps? The…
David Chouinard
  • 4,828
  • 8
  • 38
  • 58
74
votes
2 answers

Performance impact of using css / javascript source-maps in production?

Should source-maps be used in production environment? Do they provide any benefits other than debugging? Do they impact app load time due to the additional server round-trips? Are browsers smart enough to load .map assets after app is loaded and…
Ray Shan
  • 1,538
  • 2
  • 15
  • 25
69
votes
4 answers

disabling Devise registration for production environment only

I am launching a beta site with a select group of users. I want to disable registration in the production environment only, and only for a short period of time (i.e. I don't want to nuke my registration altogether). I know I can simply hide the…
panzhuli
  • 2,760
  • 4
  • 29
  • 44
64
votes
10 answers

SQLite as a production database for a low-traffic site?

I'm considering using SQLite as a production database for a site that would receive perhaps 20 simultaneous users, but with the potential for a peak that could be many multiples of that (since the site would be accessible on the open internet and…
carson welsh
  • 1,300
  • 3
  • 11
  • 16
1
2 3
99 100