production

Using HSQLDB in production environments

折月煮酒 提交于 2019-12-05 04:19:40
I want to use HSQLDB in a production environment for stroring some data in memory and for data export using files. Does anybody have experience with using hsqldb in production environments? Is hsqldb treating server resources gracefully and does it cleanup unused resources properly? I've seen a critical post on those issues from red hat and I'm wondering whether this still holds for hsqldb: http://kbase.redhat.com/faq/docs/DOC-15194 I've used hsql on numerous occasions in production (mainly as quick filebased storage for complex preferences) and never encountered any problems. Don't know about

Production compilation with ejected Angular 4 application produces large files

爱⌒轻易说出口 提交于 2019-12-05 03:28:34
ng build --prod Angular CLI command produces highly compressed javascript files in Angular4 application. When the application is ejected using ng eject command, Angular CLI commands are gone and we are left with npm scripts( npm run build command to build the app), but unfortunately that command outputs a non-production build. I tried running webpack -p command directly but the output result files are slightly larger compared to the output of ng build --prod command. How to get a compression equivalent of ng build --prod command but on an ejected application? What command/arguments can produce

Rails Routing Broken In Production - Caching of routes.rb suspected

﹥>﹥吖頭↗ 提交于 2019-12-04 21:15:04
Update: Turns out that this problem was because half my mongrel did not restart. Thanks all for help! Hi folks, i have an urgent problem. Essentially, my routing works on my localhost. But when i deployed this to production, the routes does not seem to work correctly. For example, given a new route "/invites" - sometimes i will get a 404, and sometimes it will work correctly. I suspect there is some caching going on somewhere, but i am not sure. Logs: when a page is not found (when the routes are supposed to be accurate) Processing UsersController#network (for 67.180.78.126 at 2010-06-01 09:59

optimum OS,server, etc setup for rails production environment

流过昼夜 提交于 2019-12-04 19:55:02
what is the optimum OS,server, etc setup for rails production environment? Your recommendations? thanks Adam Lassek There are many, many different ways to configure a Rails server. I don't know if there if such a thing as an 'ideal' config. I will tell you how I have my server configured and why. Operating System : Linux , any distribution. This is the only server platform that makes any sense. The Ruby community is centered around Linux, but BSD would be a perfectly good choice as well. I am most comfortable with Linux. OSX is a great development platform, but the extra cost doesn't really

How to disable Rails RoutingError stacktrace printout in Production log files?

回眸只為那壹抹淺笑 提交于 2019-12-04 18:40:17
问题 In my proudction rails app, I got all types of random attacks requesting for asp, zip and rar files. Rails rendered 404 page as expected, but my production log file is jammed with RoutingError stacktrace dump like the following. My question is: can I block URLs with certain patterns in Apache/Passenger? Or at least can I configure Rails to just log the error itself and not to print the entire stacktrace? Thanks! Processing ApplicationController#index (for 100.222.237.7 at 2011-03-22 10:59:54)

Angular cli: getting it ready for production

若如初见. 提交于 2019-12-04 11:37:41
I wrote my first Angular 2 application, and I would like to put it onto a test server. I recently converted it to an Angular-cli project and built it using the command : ng build --prod From what I understand, I should then be able to paste the contents of the "/dist" folder onto the test server and run it with ng serve However, If the "/dist" folder can run standalone, why am I unable to run it on my pc as a standalone app (ie, I cannot copy the contents of the dist folder to another place on the pc and run it.) This will actually be the first application I will be putting onto a test

Logging in Ruby on Rails in Production Mode

青春壹個敷衍的年華 提交于 2019-12-04 08:13:03
问题 I would like to view some variables in controller, it tried the following: Rails.logger.debug "Year: #{Time.now.year}" puts "Year: #{Time.now.year}, Month: #{@month}" where can I see the output for Logger or Puts in production mode? Do I need so set something up to view these somewhere? 回答1: The normal log level in production is info , so debug logs are not shown. Change your logging to Rails.logger.info "Year: #{Time.now.year}" to show it in production.log . Alternatively (but not a good

Bundle React/Express App for production

此生再无相见时 提交于 2019-12-04 02:11:49
问题 My app is built with "create-react-app" and also Express.js as back-end. How should I set up for the app for production? Here is my user.js file from Express: var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.json(['Hello World']) }); module.exports = router; I have "Proxy" setup in the package.json file in the React folder. "proxy": "http://localhost:3001" "create-react-app" has the command for build: npm

Smooth redeployment of WAR in production?

心不动则不痛 提交于 2019-12-04 01:42:58
I was wondering if there is a 'smooth way' of redeploying a Java WAR to a production server (no cluster, no OSGi)? All I can come up with is stop server, update file, restart server. And 10 minutes beforehand I need to display a maintenance warning on the site. What's your approach? First, hot-deploy doesn't always work. We spent so much time to make sure every new module is loaded and decided it's not worth the trouble. So what you are doing may sound bad but it's the most reliable way to deploy a new WAR. Our current approach is to use a switch with load-balancer in front of all servers. We

Angular ng build --target=production giving errors

喜欢而已 提交于 2019-12-03 20:37:31
I have a created a new Angular Project using Angular-CLI. The versions I am using are: Angular-Cli: 1.0.2 Angular: 4.0.0. I have added a lot of code in it but now, when I build my project using below command I get bunch of errors ng build --target=production --env=staging Errors: /src/app/views/signup/signup.component.html (21,86): Property 'email' is protected and only accessible within class 'SignUpComponent' and its subclasses. /src/app/views/signup/signup.component.html (26,80): Property 'password' is protected and only accessible within class 'SignUpComponent' and its subclasses. Can