deployment

How to manage local vs production settings in Django?

久未见 提交于 2020-01-07 06:26:15
问题 What is the recommended way of handling settings for local development and the production server? Some of them (like constants, etc) can be changed/accessed in both, but some of them (like paths to static files) need to remain different, and hence should not be overwritten every time the new code is deployed. Currently, I am adding all constants to settings.py . But every time I change some constant locally, I have to copy it to the production server and edit the file for production specific

nginx subdomain failure with Rails app and passenger

做~自己de王妃 提交于 2020-01-07 05:30:34
问题 I am totally new to nginx deployment and having problem setting up the subdomain for rails app which is running in passenger. My app structure is like this -- sss.com (parent domain) -- sub.sss.com (subdomain) -- zzz.com (which will be redirected to sub.sss.com) For more clear perspective, think of the gmail structure -- google.com (parent domain) - mail.google.com (subdomain) -- gmail.com (which will be redirected to mail.google.com) And remember sub.sss.com is not just a directory under sss

Is it possible to minify Javascript, CSS and combine them in deploy time?

人盡茶涼 提交于 2020-01-07 04:52:31
问题 Is there a feature to minify and combine these files when deploying on Visual Studio? 回答1: There's an awesome article about this, have a read here. 来源: https://stackoverflow.com/questions/4233420/is-it-possible-to-minify-javascript-css-and-combine-them-in-deploy-time

Qt Mac OS Deployment - You must supply an Apple ID

萝らか妹 提交于 2020-01-07 00:34:10
问题 I have developed a Mac OS app in Qt 5.2.1 . I have used macdeployqt , signed frameworks and plugins, signed the app and made a package. When I use Application Loader to upload the pkg file, after a while, I get an error message You must supply an Apple ID . Any idea how to correct this? 回答1: I find that I need to use the Application Loader that I have downloaded separately from Itunes Connect instead of the one that comes bundled with Xcode. 来源: https://stackoverflow.com/questions/22642246/qt

Heroku: Deploying rails application troubles

限于喜欢 提交于 2020-01-06 19:51:24
问题 I'm trying to deploy my rails application with heroku (as shown here). I've created a very simple rails application (using ruby 1.9.2 and rails 3.0.3; i'm sure heroku supports these - see heroku docs), created and pushed github repo, created heroku repo and pushed it (all commiting is done). And when i'm trying to access my application controller, it throws 404 rails page like it's saying 'there is no such controller'. I've done heroku rake db:migrate but first time i ran it i got 'host not

How to deploy QT5.2 application?

流过昼夜 提交于 2020-01-06 17:55:07
问题 I have QT 5.2 installed on Ubuntu 12.04. I did not build it, but simply downloaded and unzipped from the QT website. My question is how can we package the required libs along with the executable for deployment? The QT documentation says that we should build QT for static linking, but the "configure" file is missing in the QT directory. Thanks in advance. 回答1: Ok. So I finally managed to deploy my Qt app along with its dependencies after countless hours of googling. This was done on Ubuntu 12

how to copy or deploy c# command line project from Visual Studio

百般思念 提交于 2020-01-06 15:14:59
问题 I have been manually copying dlls, exe, etc. from a "C# Command Line" project to a UNC server share to be executed by a scheduled task. Does anyone have a suggestion how I can turn this into a simple operation in Visual Studio? Here is what I have tried: Publish wizard. It asks how users will install the application, which is totally irrelevant to my situation. I just want to put it out on a server share. Project Properties -> Publish. This seems pretty much to be the same as the publish

wordpress live site : include them class in a cron job

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 14:26:35
问题 import a class from theme directory outside of wordpress. The CRON I am cronning a daily job via Cpanel for my site that will feed a stats table. I created a file in the root Home/myDirectory (same level as public_html ) beloo is the code <?php include dirname(__FILE__) . '/public_html/wp-load.php'; // Load WP Functions include dirname(__FILE__) . '/public_html/wp-content/themes/cooking/config/Data/ViewsData.php'; // require a class function test(){ if(class_exists('ViewsData')){ $viewsData =

Creating a Windows installer with automatic download of .NET Framework

非 Y 不嫁゛ 提交于 2020-01-06 12:49:08
问题 I am using Visual Studio Installer project for deploying a Windows Forms application. Is there a way to set up an automatic downloading and installing .NET framework 4.0 Client profile, if necessary, automatically from the Internet? 回答1: The setup installer has an option to both ask and download appropriate the framework from the Internet. It is set in the project. Click setup project -> properties. On the "properties page" there is a button called "Prerequisites.." There you have three

TFS 2010 and creating a package

允我心安 提交于 2020-01-06 09:05:22
问题 I am running the build with the flags /p:CreatePackageOnPublish=true /p:DeployOnBuild=True The agent creates a the folder: C:\Builds\99\MyWebProject\Sources\WebProj\Web\obj\Debug\Package\PackageTmp that is used when the package is deployed. However, this folder does NOT have the files that are not in source control but are created during the post build event. I'd like these files to be included in the package as well (but can't add them to the source control as they are created later). How do