Skip to main content

Questions tagged [production-environment]

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

production-environment
Filter by
Sorted by
Tagged with
273 votes
12 answers
114k views

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 ...
racs's user avatar
  • 4,094
206 votes
7 answers
81k views

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 ...
jrochkind's user avatar
  • 23.2k
196 votes
15 answers
211k views

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?
Adler Medrado 和尊's user avatar
191 votes
10 answers
153k views

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 ...
TiansHUo's user avatar
  • 8,629
187 votes
6 answers
75k views

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 initializing logger from the app?
cnikolaou's user avatar
  • 3,932
159 votes
6 answers
73k views

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 ...
IAmYourFaja's user avatar
  • 56.5k
122 votes
5 answers
26k views

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 ...
Vlad's user avatar
  • 8,128
103 votes
1 answer
65k views

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 ...
Dan Polites's user avatar
  • 6,780
98 votes
10 answers
53k views

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 ...
carson welsh's user avatar
  • 1,648
98 votes
2 answers
51k views

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's user avatar
  • 3,660
96 votes
6 answers
71k views

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 ...
sent-hil's user avatar
  • 19.1k
83 votes
2 answers
14k views

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 ...
Ray Shan's user avatar
  • 1,675
75 votes
6 answers
62k views

Deploying a production Node.js server [closed]

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 ...
David Chouinard's user avatar
71 votes
4 answers
28k views

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 ...
panzhuli's user avatar
  • 2,930
69 votes
5 answers
86k views

How to run production site after build vue cli

I'm using VueCLI 2 and build as production. THe build.js is built and compiled into 200KB. When I re-run the server as development, it loaded 3MB. I'm sure the build.js inside dist folder is 200KB. I ...
Abel's user avatar
  • 1,614
68 votes
7 answers
69k views

Visual Studio: differentiate app.config for debug and release mode

Is there a way to automatically use a separate app.config when building in release mode? In other words, I want to test with one app.config, and release with another. Currently, I keep a separate ...
Korey's user avatar
  • 999
47 votes
10 answers
28k views

Best and safest Java Profiler for production use? [closed]

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 ...
Peter's user avatar
  • 29.7k
40 votes
3 answers
25k views

Rails Internationalization (I18n) in model validations: Possible or not?

I have the following validation in a model: validates_inclusion_of :whatever, :in => [true, false], :message => I18n.t('please_select_whatever') It seems that the translation does not work in ...
TomDogg's user avatar
  • 3,928
40 votes
3 answers
28k views

Visualizing your code's architecture [closed]

Each weekend I'm coding on a personal project which over time has reached a certain complexity by now, where I have sequences of different functions that take my input, that I save in some class ...
l7ll7's user avatar
  • 1,329
38 votes
1 answer
19k views

Is multi-AZ RDS really worth it? [closed]

Looking at the prices for RDS instances, the multi-AZ instances cost double. Having a production environment in mind, does it worth it? What uptime should I expect from a single-AZ instance, as ...
UriP's user avatar
  • 594
37 votes
12 answers
26k views

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 ...
Andrei's user avatar
  • 1,616
34 votes
3 answers
55k views

Laravel - What steps should one take to make a Laravel app ready for production mode

The scenario is I have developed a Laravel app in my localhost. Everything works fine. Now I need to make it go online. I am just trying to figure out what steps (configuration , security etc.) ...
Istiaque Ahmed's user avatar
34 votes
5 answers
61k views

Node.js, express, and using development versus production in app.configure

What is the easiest method to let express know what environment I am in? E.g. I want do do the below to make a connection to redis depending on what env I am in. Can this be done from the command ...
Tampa's user avatar
  • 77.4k
34 votes
5 answers
45k views

Moving app to production mode in Symfony 2

Can someone help me to move my Symfony 2 application into production mode? Currently, the application is running properly in /app_dev.php. I'm googling, but I'm not finding a definite guide for ...
Noor's user avatar
  • 20k
34 votes
2 answers
13k views

Rails: Show SQL Queries in Production Log

How can we enabled SQL query logging in production environment? Thanks, Imran
Saim's user avatar
  • 2,493
33 votes
4 answers
21k views

Is it recommended to use Database as a container in Production environment?

Assuming we are using a micro service architecture for a product and we decide to use 'Database per service' model, and deploy in cloud servers by provider like AWS. It is convenient to have ...
Shruthi Bhaskar's user avatar
30 votes
2 answers
14k views

Server unable to find public folder in rails 3 production environment

I'm using the latest rails 3 beta. The app works fine in development mode, but when I start the server in production mode via rails server -e production, it seems that the public folder can't be found....
James's user avatar
  • 5,343
29 votes
3 answers
19k views

"require_tree argument must be a directory" rails 3.1.1 precompile assets

I've been round and round here with trying to get the assets to pre-compile on my production server (straightforward ubuntu install with ruby 1.9.2 and Rails 3.1.1, and tried 3.1.2RC with the new ...
evets's user avatar
  • 579
29 votes
6 answers
20k views

PushSharp APNS production: The credentials supplied to the package were not recognized (development works fine though)

My app just got ready for sale on App Store, but none of my production devices (devices that have installed the app from App Store) are getting push notifications. When I try to send a push ...
Can Poyrazoğlu's user avatar
29 votes
7 answers
45k views

Could not load file or assembly 'Microsoft.SqlServer.Types

I have web application which we deployed in a production . We have separate servers for WEB and Database. The DB is SQL Server 2008 and it is hosted on a completely different server and we have our ...
SVI's user avatar
  • 1,641
29 votes
2 answers
12k views

How to prevent downtime during AWS Elastic Beanstalk deployment of a new version of the app?

My understanding of Elastic Beanstalk is that when you deploy a new version of your app, that it deploys it to the Amazon EC2 instances one at a time (if you have more than one). However, even with a ...
Peter's user avatar
  • 29.7k
28 votes
6 answers
48k views

Rails Production - How to set Secret Key Base?

So I am trying to get my rails app to deploy in production mode, but I get the error: Missing secret_token and secret_key_base for 'production' environment, set these values in config/secrets.yml My ...
nvrpicurnose's user avatar
28 votes
2 answers
17k views

Setup sunspot solr with rails in production environment

I have tried various links but I can't seem to find a good resource on creating a running solr instance that works with rails in production. I understand that you have to setup the solr server for ...
Lester Celestial's user avatar
26 votes
6 answers
48k views

Rails - Asset is not present in asset pipeline when using image_tag

Goal: Using my rails app with static images in assets in production environemt Steps: I turned my rails app to production environment. Precompiled the assets with RAILS_ENV=production rails assets:...
Vega180's user avatar
  • 768
26 votes
3 answers
23k views

iPhone: Push Notification Testing on Production Certificate

I have a quick question. I have been testing Development Push Notification Certificate for my iPhone App and its been working fine. I just want to know that is it possible to test Production ...
Paresh Masani's user avatar
26 votes
2 answers
2k views

Using CoffeeScript in a production environment [closed]

I really like using CoffeeScript (1.1.1) for small projects and it worked out great so far. However before using it in a more broad environment I would like to hear second opinions on using it in ...
akosch's user avatar
  • 4,376
25 votes
1 answer
6k views

Boot rails 3.1 in different environment

Trying to boot a Rails 3.1 app locally in production mode. rails s will boot into development just fine. When I try rails s production I get the error: /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/...
tybro0103's user avatar
  • 49.3k
25 votes
1 answer
12k views

Performance Monitoring: Ganglia vs Graphite

I was looking for a high performance monitoring solution for our production servers and I've come across a number of free tools and paid services. I would like to avoid paid services unless absolutely ...
Alessandro Giannone's user avatar
25 votes
1 answer
13k views

Proper error handling on the Node.js ws package

I'm working on replacing a REST-based data pipe with a Websocket-based one, and I'm having trouble finding all the places things can go wrong. The system is production, so very bad things happen if it ...
TheEnvironmentalist's user avatar
24 votes
2 answers
13k views

Canary vs. A/B release strategy

I was going through the different types of release strategy and was confused between the Canary and A/B strategy. Both of them seems to be similar. Everywhere I read on Canary is "Allows to test ...
Vikas Gupta's user avatar
  • 10.9k
24 votes
1 answer
31k views

Recommended RAM ratios for ELK with docker-compose

I have a production server with 8GB RAM. Im looking to host elastic,logstash and kibana on the server. Using docker compose. What would be the recommended java sizes memory sizes for each of the ...
Robbo_UK's user avatar
  • 11.9k
20 votes
2 answers
53k views

flask production and development mode

I have developed an application with flask, and I want to publish it for production, but I do not know how to make a separation between the production and development environment (database and code), ...
Abdellah ALAOUI ISMAILI's user avatar
20 votes
2 answers
13k views

How to Run Sails in production with pm2 (sails lift --prod) with pm2

How to lift sails in production with pm2 ?? I mean what is the the command of pm2 to get similar action like below command. sails lift --prod like we can run sails lift as pm2 start app.js In pm2 ...
Satyam Koyani's user avatar
20 votes
1 answer
12k views

Where should I store the connection string for the production environment of my ASP.NET Core app?

Where should the production and staging connection strings be stored in an ASP.NET Core application, when deploying into IIS 7 (not Azure) ? I am looking for the recommended way of doing it / best-...
Daniel's user avatar
  • 1,044
19 votes
10 answers
17k views

How can we check if we are running the PHP script on localhost?

Is there a way to check if we are running a PHP script on localhost - development server or on live server - production server? Is there any PHP constant, variable, function,etc that can give me this ...
Yasen Zhelev's user avatar
  • 4,045
19 votes
3 answers
14k views

How to check in development or production in ERB file in Rails?

I want to load jQuery UI via Google CDN if in production and locally if in development. So in my application.html.erb layout, I've got to know whether I'm in production or dev. Is there a variable I ...
at.'s user avatar
  • 52.1k
19 votes
3 answers
26k views

How to change the environment in Laravel 5.1?

What I understand about the working of environments in Laravel is that you have different environments for different, well environments. So, if you are running your app locally you could have a .env....
Homo Sapien's user avatar
18 votes
3 answers
55k views

How to get path of the php binary on server where it is located

I am using the exec command as below in PHP : exec("/usr/bin/php /path/to/Notification.php >> /path/to/log_file.log 2>&1 &"); In my local environment (MAMP), I know the PHP ...
Ponting's user avatar
  • 2,248
18 votes
6 answers
14k views

Problems with ckeditor running on production Rails application with Heroku

I'm using the ckeditor gem in my Rails 4 application. Everything works great locally and on my staging heroku environment, but I get this errors when pushing on the production environment : GET http:/...
Jérôme Boé's user avatar
18 votes
2 answers
23k views

Why is XAMPP not suited for production? [closed]

I have been running XAMPP on Windows 2008 R2 for many years now, I'm only using Apache, MySql and FileZilla. I have made many custom adjustments and upgraded it serveral times. I have addressed all ...
itsproject's user avatar

1
2 3 4 5
38