production-environment

How to configure MongoDB Java driver MongoOptions for production use?

不想你离开。 提交于 2019-11-27 16:35:41
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 of semaphores to get db connection" error and by increasing the connections/multiplier I was able to solve that problem. I'm looking for links to or your best practices in configuring these options for production. The options for the 2.4 driver include: http://api.mongodb.org/java/2.4/com/mongodb/MongoOptions.html autoConnectRetry connectionsPerHost

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

让人想犯罪 __ 提交于 2019-11-27 13:55:16
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 notification to a production device, I am getting this error: "The credentials supplied to the package were not recognized" (System.ComponentModel.Win32Exception) This exception is internally thrown and caught in an infinite loop: It is thrown at line 539 of ApplePushChannel.cs file: try { stream.AuthenticateAsClient(this.appleSettings.Host, this.certificates, System.Security.Authentication.SslProtocols

Setup sunspot solr with rails in production environment

大城市里の小女人 提交于 2019-11-27 06:07:50
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 production. I have tried the setup of solr with tomcat but I cant seem to link it to the rails app. Is there any good resource out there that I could use? Thanks This blog may solve your question: Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem. ( http://blogs.pigrider.com/blogs/26 ) Below are some parts from the blog: ...... 8) Copy this configuration file

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

烈酒焚心 提交于 2019-11-27 05:16:58
问题 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 there's always a possibility that someone will post a link somewhere that could drive many people to the site all at once). Is SQLite a possibility? I know it's not an ideal production scenario. I'm only asking if this is within the realm of being a

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

让人想犯罪 __ 提交于 2019-11-27 04:54:58
问题 How to set up tmux so that it starts up with specified windows opened? 回答1: You can write a small shell script that launches tmux with the required programs. I have the following in a shell script that I call dev-tmux. A dev environment: #!/bin/sh tmux new-session -d 'vim' tmux split-window -v 'ipython' tmux split-window -h tmux new-window 'mutt' tmux -2 attach-session -d So everytime I want to launch my favorite dev environment I can just do $ dev-tmux 回答2: I was trying to create a complex

Angular 2: Reduce app size (in addition to bundling/minification)

♀尐吖头ヾ 提交于 2019-11-27 03:25:24
问题 I have a small-medium size (~28 KB including just the (TypeScript transpiled) JS + HTML templates) Angular 2 app. It's based originally on the angular.io quickstart, but now I am bundling/minifying it using JSPM for deployment. The bundled JS file I get is 2.1 MB, coming down to 449 KB when served with gzip compression. This is still rather large, and I would like to ask how best to go about reducing the overall size of the app for deployment, to deliver my app in the smallest and most

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

北慕城南 提交于 2019-11-27 02:02:40
问题 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 production mode: in all languages it's always the english translation that gets diplayed (probably because I set english as the default locale in my app...?). So I am assuming that we can't translate validations in models, because models get loaded only once - when the server is booted (and then, the

iPhone: Push Notification Testing on Production Certificate

拥有回忆 提交于 2019-11-27 01:47:25
问题 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 Certificate before submitting my application to AppStore? I did try but message is not coming along when I use production certificate. Does Apple required application to be in AppStore when I use production certificate? Thanks. 回答1: If you create an Ad-Hoc Profile, you'll find that it uses the production

how to set ASPNETCORE_ENVIRONMENT to be considered for publishing an asp.net core application?

拥有回忆 提交于 2019-11-27 00:25:33
when i publish my asp.net core web application to my local file system, it always takes the production-config and the ASPNETCORE_ENVIRONMENT variable with the value = "Production". how and where do i have to set the value of the ASPNETCORE_ENVIRONMENT variable so that it will be considered not only for debugging, but also for the publishing ? i already tried the following options without success: in windows settings in .pubxml file in launchSettings.json in project.json Option1: To set the ASPNETCORE_ENVIRONMENT environment variable in windows, Command line - setx ASPNETCORE_ENVIRONMENT

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

时光总嘲笑我的痴心妄想 提交于 2019-11-27 00:09:23
问题 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 rendered? If a browser cannot find the .map asset ( 404 error), would there be performance impact? Should I care about fixing it? Note that fixing the last one may not be as easy as serving the .map assets if there are complicated concat / minify