production

Performance / stability of a Memory Mapped file - Native or MappedByteBuffer - vs. plain ol' FileOutputStream

喜你入骨 提交于 2019-12-03 17:04:55
问题 I support a legacy Java application that uses flat files (plain text) for persistence. Due to the nature of the application, the size of these files can reach 100s MB per day, and often the limiting factor in application performance is file IO. Currently, the application uses a plain ol' java.io.FileOutputStream to write data to disk. Recently, we've had several developers assert that using memory-mapped files, implemented in native code (C/C++) and accessed via JNI, would provide greater

Django error - matching query does not exist

会有一股神秘感。 提交于 2019-12-03 14:15:56
问题 I finally released my project to the production level and suddenly I have some issues I never had to deal with in the development phase. When the users posts some actions, I sometimes get the following error. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "home/ubuntu/server/opineer/comments/views.py", line 103, in comment_expand

Is node.js ready for production use? [closed]

折月煮酒 提交于 2019-12-03 11:12:39
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . Starting a new project. It's basically a blogging/commenting system. We're considering node.js as the back end server. Is node.js ready for this sort of thing or is it too early and experimental? We need HTTPS and gzip compression - perhaps a front end nginx server could

How to check rails environment?

寵の児 提交于 2019-12-03 10:32:02
问题 How check rails environment on Ubuntu Server? command: Rails.env => command not found command: rails.env => command not found 回答1: One liner if you are in app root rails r "puts Rails.env" 回答2: It sounds like you tried to run Rails.env in a shell. That won't work because Rails.env is Ruby code, not a Unix shell command. How are you deploying and starting your rails app on the server? The Rails environment is determined by whatever the value of the RAILS_ENV environment variable is when the

Managing evolutions in production environment

[亡魂溺海] 提交于 2019-12-03 08:11:10
问题 We are in the process of deploying a new application using play 2.1.1 to production and are having some real issues with it and the very limited documentation didn't help much... So it was time to update to a new version, we ran our usual stop/upgrade/start scripts but they failed. For some reason, play was refusing to apply the evolutions. When starting it kept saying Oops, cannot start the server. @6elnj89fh: Database 'default' needs evolution! This was even though we tried setting

How can I share user sessions across multiple domains using Rails?

这一生的挚爱 提交于 2019-12-03 07:38:02
问题 Is anyone aware of any gems, tutorials, or solutions enabling a user to sign in to a website at one domain and automatically given access to other partner domains in the same session? I have two rails apps running, let's call them App-A and App-B. App-A has a database associated with it, powering the registration and login at App-A.com. I'd now like to give all of those users with App-A.com accounts access to App-B.com, without making them reregister or manually login to App-B.com separately.

Rails 3 + angularjs + minification does not work in production: Unknown provider: eProvider

旧城冷巷雨未停 提交于 2019-12-03 06:53:38
问题 I've followed all the instructions I can find for fixing minification, e.g. var MyController = function(renamed$scope, renamedGreeter) { ... } MyController.$inject = ['$scope', 'greeter']; and someModule.factory('greeter', ['$window', function(renamed$window) { ...; }]); yet angular refuses to work still. It always throws the error "Unknown provider: eProvider" Here are my two attempts to get it working... can anyone help? https://github.com/jemminger/angular-test1 https://github.com

Angular 2 with CLI - build for production

左心房为你撑大大i 提交于 2019-12-03 06:41:53
问题 I have freshly installed angular-cli 1.0.0.beta.17 (latest one), start new project, able to serve project on port 4200 with no problems - just standard "app works!" message. However when I try to build for production this empty and generic application by using command ng build --prod I do not have main.*.js file created at all and have a few screens of warnings like: Dropping unused function... Site effects in initialization... etc This is a brand new empty project - I did not have a chance

Rails: Best way to make changes to a production database

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:16:02
问题 I need to make changes to an in-use production database. Just adding a few columns. I've made the changes to the dev database with migrations. What is the best way to update the production database while preserving the existing data and not disrupting operation too much? It's MYSQL and I will be needing to add data to the columns as well for already existing records. One column can have a default value (it's boolean) but the other is a timestamp and should have an arbitrary backdated value.

Rails 3.1 Deploy to Production (with Apache & Passenger) Asset Problems

空扰寡人 提交于 2019-12-03 05:15:34
问题 Rails 3.1 has changed the way it handles the asset pipeline and it is causing issues when deploying to production. I am using Apache and Passenger, which seem to work fine. My production is setup like this (for now). # congif/environments/production.rb config.cache_classes = false config.consider_all_requests_local = true config.action_controller.perform_caching = true config.serve_static_assets = false config.assets.compress = true config.assets.compile = false config.assets.digest = true