How to make index.html not to cache when the site contents are changes in AngularJS website?

Yes, that is the correct way. You have to set the Cache-Control header to let the browsers know that they don’t have to cache any content for that request. <meta http-equiv=”Cache-control” content=”no-cache, no-store, must-revalidate”> <meta http-equiv=”Pragma” content=”no-cache”> (Pragma & Cache-Control is one and the same thing but from the different HTTP specification. See the answer … Read more

ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production

Here I found help for the same problem you had. Run rails console and: JS_PATH = “app/assets/javascripts/**/*.js”; Dir[JS_PATH].each do |file_name| puts “\n#{file_name}” puts Uglifier.compile(File.read(file_name), harmony: true) end It will show you the file and the line where the Uglifier is making the problem.

ILMerge Best Practices

I use ILMerge for almost all of my different applications. I have it integrated right into the release build process so what I end up with is one exe per application with no extra dll’s. You can’t ILMerge any C++ assemblies that have native code. You also can’t ILMerge any assemblies that contain XAML for … Read more

How to install RVM system requirements without giving sudo access for RVM user

This is indeed a new feature of RVM called autolibs, which automatically installs dependencies. If you have already installed RVM, and it is asking you for your sudo password, you can disable autolibs: $ rvm autolibs disable $ rvm requirements # manually install these $ rvm install ruby Otherwise, you can install RVM without autolibs … Read more

Deploying a production Node.js server [closed]

You should really really use a framework (I recommend something like Express since it was battle-tested) unless you want to deal with sessions, cookies, middleware etc by yourself. Express is really light. Starting the server with nohup: you shouldn’t do that, just start it with the regular “node” command. Also Express wraps the routes in … Read more

Capistrano deploy fails after I changed the repository URL

Capistrano 2.X Delete and re-clone the repo using the new address: cd $deploy_to/shared rm -rf cached-copy git clone ssh://git@example.org/new/repo.git cached-copy Modify your config/deploy.rb to use the new repo: set :repository, “ssh://git@example.org/new/repo.git” set :scm, :git set :deploy_via, :remote_cache Deploy again: cap deploy Capistrano 3.X Remove the $deploy_to/repo directory Modify your config/deploy.rb (same as 2.X) cap deploy

How to deploy after a build with TeamCity?

This article explains how to call Microsoft’s WebDeploy tool from TeamCity to deploy a web application to a remote web server. I’ve been using it to deploy to a test web server and run selenium tests on check-in. http://www.mikevalenty.com/automatic-deployment-from-teamcity-using-webdeploy/ Install WebDeploy Enable Web config transforms Configure TeamCity BuildRunner Configure TeamCity Build Dependencies The MSBuild arguments … Read more