dev-to-production

morris.js chart doesn't work on production server

强颜欢笑 提交于 2019-12-11 09:35:59
问题 I have this morris.js chart which I populated with random values (the ones provided in the exemple). Whereas it renders perfectly in localhost , once I upload on the production server it no longer works. Set up JS code new Morris.Line({ element: 'daily-chart', data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a: 50, b: 40 }, { y: '2009', a: 75, b: 65 }, { y: '2010', a: 50, b: 40 }, { y: '2011', a: 75, b: 65 }, { y: '2012', a: 100, b: 90 } ], xkey: 'y', ykeys: ['a

Performance testing in production environment using Jmeter

半世苍凉 提交于 2019-12-08 15:18:51
问题 Hi stack Overflow community, i need your valuable help I developed a script for our web application using Jmeter and Blazemeter chrome plugin Scenario as login >> walkthrough some pages >>logoout Script working successfully in our local environment. I am using summary report as a Listener and non Gui mode for performing test Now i need to do load testing for 250 usesr on client production environment. measurement points are 1.Response time for each request 2.Data traffic Size 3.CPU and memory

Use/productionize trained machine learning model in client-side javascript?

让人想犯罪 __ 提交于 2019-12-06 11:27:15
So this is a slightly insane idea that I've been kicking around. I'm thinking of building a classifier for (a specialized subset of) some web content, and then supplying it to users in the form of a chrome extension. (So: user goes to web page, clicks button on chrome extension, extension applies pre-trained model to generate prediction, presents result to user.) But I'm cheap, and I don't want to run a server to receive data from the chrome extension, generate a prediction, and send it back to the user. It occurs to me: why not just find some way to serialize the trained model or something,

Remove development gems from production with Bundler and Rails 4

做~自己de王妃 提交于 2019-12-05 21:45:20
Problem Our deployed application has development dependencies in it. We have a lot of development dependencies. This increases the artifact size and the memory consumption in production, as all those dependencies are require 'd. Most instances are deployed in the cloud, so more memory = more money for larger instances. We would like to reduce the size/memory and make a more clear separation between the deployed artifact and the development environment. A particular focus is the need for therubyrhino in production environments even though our assets are precompiled. Context This question has

Git production/staging server workflow

余生颓废 提交于 2019-12-03 00:02:39
问题 Currently my website (production server) already have a lot of code in it. And now I want to start using Git for my projects and setup a staging server for my team. Can anybody give me any advise? Here is the picture in my mind: Production - Production server which already have codes ↑ Staging - New staging server, will install Trac too ↗↙ ↖↘ Developer1 Developer2 - Local development My question is, how should I start? Here are some steps in my mind: do a git init in production server (is

Git production/staging server workflow

爱⌒轻易说出口 提交于 2019-12-02 13:49:33
Currently my website (production server) already have a lot of code in it. And now I want to start using Git for my projects and setup a staging server for my team. Can anybody give me any advise? Here is the picture in my mind: Production - Production server which already have codes ↑ Staging - New staging server, will install Trac too ↗↙ ↖↘ Developer1 Developer2 - Local development My question is, how should I start? Here are some steps in my mind: do a git init in production server (is this safe?) clone the repo from production to staging server developers clone the repo from the staging to

Symfony2: access same route in production as development

一世执手 提交于 2019-11-30 19:27:25
I'm developing a little application using Symfony2. I can access all routes with no problems in my dev environment: http://symfony/app_dev.php/cp ("symfony" is in my hosts file to resolve to localhost) However, as soon as I try and access it in the production environment, I just get a 404 error page: http://symfony/app.php/cp Oops! An Error Occurred The server returned a "404 Not Found". Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. Is there something I need

Initializing private repositories on production server

强颜欢笑 提交于 2019-11-30 10:38:19
What I want to do now is to initialize a private repository on my production server in to app's www folder (ex: /var/www/app.com/web/) and then clone it as a staging repository to my testing site (ex: /var/www/test.com/web/app.com/) and finaly clone from staging to local to work with the code. Am I planning it the right way? I am following these tutorials to learn more about setting the "git server" and initialize private repositories: http://progit.org/book/ch4-4.html https://moocode.com/posts/6-code-your-own-multi-user-private-git-server-in-5-minutes http://www.layeredthoughts.com/git

Django: sqlite for dev, mysql for prod? [closed]

余生颓废 提交于 2019-11-28 21:17:34
Quick question: is it a good idea to use sqlite while developing a Django project, and use MySQL on the production server? I'd highly recommend using the same database backend in production as in development, and all stages in between. Django will abstract the database stuff, but having different environments will leave you open to horrible internationalisation, configuration issues, and nasty tiny inconsistencies that won't even show up until you push it live. Personally, I'd stick to mysql, but I never got on with postgres :) Tomasz Zieliński I second all previous answers, adding some

Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))

孤者浪人 提交于 2019-11-28 10:41:28
I am trying to convert a .xls file to an .xlsx file on the server-side using Microsoft.Office.Interop.Excel.Workbook class as follows: workBook.SaveAs("FILENAME_HERE", XlFileFormat.xlOpenXMLWorkbook, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlNoChange, Microsoft.Office.Interop.Excel.XlSaveConflictResolution.xlLocalSessionChanges, Type.Missing, Type.Missing, Type.Missing, Type.Missing); and I get the following error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005