production-environment

Setting `cache_classes` to `false` fixes my bug. What to do next?

陌路散爱 提交于 2020-03-05 06:18:30
问题 I'm adding a mountable engine to my rails app, which provides a forum-like functionality (i.e. adds questions, answers, comments, etc). Everything works fine in development. In staging/production, however, I get an error when trying to create an answer, specifically a CanCan permission error (though I think that may be a red herring). But it feels like ti might be related to namespacing or name collision? At any rate, the issue goes away when I set config.cache_classes = false in my

What are the right ownership & permissions to the CakePHP app/tmp folder for production?

梦想与她 提交于 2020-02-17 07:24:51
问题 I would like to know the answers and explanation to the following questions: Which user/group should own the cake files? If different, which user/group should own the app/tmp folder? (and subfolders) With the right user/group, what are the correct permissions for production of both folders and files? (which also if set correctly should work on development) Where is storing of uploaded files done and what ownership/permissions need to be set to that folder. Where should it be relative to app/

How to run production site after build vue cli

主宰稳场 提交于 2020-02-17 06:15:14
问题 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 tried to open index.html but it doesn't work and redirect to root directory on website. Package.json "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" }, Webpack module.exports = { ...

How to run production site after build vue cli

♀尐吖头ヾ 提交于 2020-02-17 06:14:26
问题 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 tried to open index.html but it doesn't work and redirect to root directory on website. Package.json "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" }, Webpack module.exports = { ...

NuGet cross-project dependency

放肆的年华 提交于 2020-01-24 01:31:47
问题 My question is about production workflow with NuGet packages for shared code. Say we have project Pr1, that depends on NuGet package N1, that depends on package N2. Pr1 added as a reference projects for other projects within the solution. Those projects also have dependencies on packages N1 and N2. Now imagine, I've made changes in N2 package. After that I need to update package version of N2 for N1, for Pr1 and also for every project that use N2 and Pr1 together, because if I don't do that,

Multiple nodejs workers in docker

北城余情 提交于 2020-01-23 17:52:54
问题 I'm very new to docker and productionizing nodejs web apps. However, after some reading I've determined that a good setup would be: nginx container serving static files, ssl, proxying nodejs requests nodejs container postgesql container However, I'm now trying to tackle scalability. Seeing as you can define multiple proxy_pass statements in an nginx config, could you not spin up a duplicate nodejs container (exactly the same but exposing a different port) and effectively "load balance" your

Common errors when moving a django app from dev to prod?

佐手、 提交于 2020-01-22 20:50:51
问题 I am developping a django app on Windows, SQLite and the django dev server . I have deployed it to my host server which is running Linux, Apache, FastCgi, MySQL. Unfortunately, I have an error returned by the server on the prod while everything ok on the dev machine. I've asked my provider for a pre-production solution in order to be able to debug and understand the problem. Anyway, what are according to you the most likely errors that can happen when moving a django app from dev to prod?

Common errors when moving a django app from dev to prod?

会有一股神秘感。 提交于 2020-01-22 20:50:13
问题 I am developping a django app on Windows, SQLite and the django dev server . I have deployed it to my host server which is running Linux, Apache, FastCgi, MySQL. Unfortunately, I have an error returned by the server on the prod while everything ok on the dev machine. I've asked my provider for a pre-production solution in order to be able to debug and understand the problem. Anyway, what are according to you the most likely errors that can happen when moving a django app from dev to prod?

Best way to handle different configuration/settings based on environment in Django project

五迷三道 提交于 2020-01-13 15:00:08
问题 Is DEBUG == False supposed to mean that the app is running in production environment? At least, that's what I see occasionally on the internet. But what do I put in settings.py then? Okay, I can put local settings to, say, settings_local.py and import it from settings.py . But if some settings depend on environment, than I've got to put them after import statement. There more I think about it, the more I don't like it. And you? 回答1: As an answer to the question: Is DEBUG == False supposed to

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

此生再无相见时 提交于 2020-01-13 09:56:06
问题 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