production-environment

`require': No such file to load — test_helper (LoadError)

做~自己de王妃 提交于 2020-01-13 09:55:07
问题 I get the following error when I run my Rails application in production mode, but when I run my app in development mode it works fine. Can I use any gems in production mode? `require': No such file to load -- test_helper (LoadError) The following is the full trace of the code: /home/nyros/.rvm/gems/ruby-2.2.0@dfl/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require': No such file to load -- test_helper (LoadError) from /home/nyros/.rvm/gems/ruby-2.2.0@dfl/gems

Measuring Method Execution Time for a Java Web Service in a Production Environment

我怕爱的太早我们不能终老 提交于 2020-01-06 05:48:27
问题 I'm interested in finding out the best way to measure the execution time of methods within a Java web service I'm working on. The service will be deployed to multiple clients and hence run in multiple different production environments (clients tend to have varying setups as dictacted by their requirements), and its been decided the service should log the execution time for processing requests to provide some indication of possible performance issues. So far, most of the suggestions (such as

Rails 4 - In production my javascript is loaded but does not work while it works well in development

孤人 提交于 2020-01-06 01:06:49
问题 I work with : Rails version 4.2.3 Ruby version 2.2.1 I have managed to run my application in production doing these steps : rake db:create RAILS_ENV=production rake db:migrate RAILS_ENV=production rake assets:precompile and rake assets:precompile RAILS_ENV=production I had some troubles with my application.js and application.css files because all the require were not in the right orders. I had to put require_tree at the bottom and require jquery at the top directly followed by require jquery

Why do grails Quartz jobs die after a few minutes on production?

允我心安 提交于 2020-01-05 05:18:10
问题 Using the grails Quartz plugin (latest stable version, 0.4.2), I have four different Jobs that run fine in my development environment, most of them every minute. However in the production environment, they run for a few minutes and then "die" - they just don't run anymore. There is no Exception thrown or similar. The rest of the application still works fine. Does anybody have an idea what the reason for this could be? Where / How should I start analyzing the problem? 回答1: I also ran into an

Django - Accessing request META data from production

混江龙づ霸主 提交于 2020-01-05 04:15:13
问题 I'm trying to send a list of datetimes to the client by JSON formatted as its locale. So the main issue is actually trying to get the locale of the client. I tried to use request.META['LC_TIME'] (which seems to be the client's prefered locale for dates and times) This key is here in development but not in production. KeyError: 'LC_TIME' How can it be explained ? Am I on the right track ? 回答1: First, let's determine what you mean under 'Production environment'. Under DEV environment, the

How should I encrypt my data in a PHP application?

吃可爱长大的小学妹 提交于 2020-01-04 05:22:10
问题 I was trying to use the Paypal PHP SDK and I noticed a warning that says I should encrypt my API username and password for use in production environments. I do agree on this statement, but I'm wondering how I should go about doing that. I currently have no clue. Here's what the warning says, just for the record: Do not embed plaintext credentials in your application code. Doing so is insecure and against best practices. Your API credentials must be handled securely. Please consider encrypting

How should I encrypt my data in a PHP application?

旧时模样 提交于 2020-01-04 05:22:10
问题 I was trying to use the Paypal PHP SDK and I noticed a warning that says I should encrypt my API username and password for use in production environments. I do agree on this statement, but I'm wondering how I should go about doing that. I currently have no clue. Here's what the warning says, just for the record: Do not embed plaintext credentials in your application code. Doing so is insecure and against best practices. Your API credentials must be handled securely. Please consider encrypting

thin: waiting for n connection to close while trying to stop server

泄露秘密 提交于 2020-01-02 23:10:48
问题 I have put my application (Ruby on Rails) on (Ubuntu) Amazon EC2 server which is running on thin and nginx. Whenever I stop my thin production server I am getting this message as "waiting for n connection(s) to finish,can take up to 30 sec, CTRL + C to stop" Below is the attached screenshot..... What does it mean and why is it coming.I had to wait for a long time for the connections to stop.I have Thin version 1.5.1. And since this is Live environment We don't want the website to go down for

Using Cucumber + RSpec in a production environment

♀尐吖头ヾ 提交于 2020-01-02 22:02:28
问题 Have you used Cucumber in a production environment? What problems did you find using it? Would you recommend I use it? I'm currently learning to use Cucumber with RSpec, I'm weighing up Pro's and Con's for using it in upcoming projects and would like some input. I will be using RSpec but I'm wondering if using Cucumber will be worth the extra time taken to write the tests. Extra Information: I don't deal with clients directly; however I do work in a team and deal with project managers who don

Dockerfile production/build/debug/test environment

佐手、 提交于 2020-01-02 07:15:08
问题 Imagine you have your web application and some workflow executors: http-server (serving pre-build asset files) - production builder (compiling/bundling js/css/html from sources) - deployment/development debugger/builder (building from sources on the fly, add js source maps) - development selenium (running tests) - integration testing How can we construct layered images to get those workflow executors working the most effectively? By effectively I mean "fastest to run and least to write". 回答1: