Categories
askquestion

Do you precompile your website and why/why not?

Do you precompile your website and why/why not?

Ask Question

Asked
11 years, 1 month ago

Active
5 years ago

Viewed
6k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

17

1

I’d like to get the pulse of the community on whether to precompile or not. I know its cold start time is faster, and it hides code. However, there is something dirty about it, IMO. Maybe its the name, compiling a website sounds incorrect.

In general how are you deploying web apps?

asp.net deployment

share|improve this question

edited Dec 19 ’08 at 18:03

community wiki

2 revs, 2 users 86%Greg Dean

add a comment
 | 

7 Answers
7

active

oldest

votes

10

i only precompile websites that are sold and licensed commercially, in order to protect the source code from modification.

supposedly this benefits performance, but that is secondary; it’s nearly impossible to rationally support a commercial web site product if anyone can muck with the code!

share|improve this answer

answered Dec 19 ’08 at 18:06

community wiki

Steven A. Lowe

add a comment
 | 

8

Okay I have two answers depending on the situation:

Situation 1: I am deploying and I will continue to deploy upgrades. I use the copy method. It’s simpler for me, I know what I’m doing and that way I don’t have to write an installer.
Situation 2: An unknown party [i.e. the client] with unknown skill is going to be attempting to deploy my site, I write an installer and documentation an 8 year old can follow on going through the installer right through to configuration – and if necessary data input. So in this situation the precompiled method is far easier.

So I don’t use either religiously, I pick the most appropriate method for the situation.

share|improve this answer

edited Jan 16 ’15 at 5:09

community wiki

2 revs, 2 users 86%BenAlabaster

add a comment
 | 

3

We use the precompiled approach on my team because we have to hand off the deployment to the infrastructure team. We build an MSI package (with a web deployment project) that installs the new release to the website.

It’s more of a separation of duties/responsibilities thing that drives our methodology though, nothing technical.

share|improve this answer

answered Dec 19 ’08 at 18:05

community wiki

Zachary Yates

add a comment
 | 

3

Having the source code laying around on Production servers is generally a bad plan. Taking the pre-compiled approach feels a bit safer 🙂

Our pre-compiled web site gets built into an MSI package that is used for deployment to a clustered environment.

share|improve this answer

edited Dec 19 ’08 at 18:15

community wiki

2 revsGabriel Isenberg

add a comment
 | 

2

I use precompiled, updateable web sites exclusively for ASP.NET web forms.

share|improve this answer

answered Dec 19 ’08 at 18:05

community wiki

tvanfosson

add a comment
 | 

1

In our case precompiling found us some pages that did not compile.

So I’d reccommend doing a precompile during the build, but not necessarily deploing it.

share|improve this answer

answered Oct 15 ’09 at 9:10

community wiki

Thomas

add a comment
 | 

0

We do not deploy our websites precompiled.

Reason: “that’s how we did it the first time and it hasn’t broken yet.”

share|improve this answer

answered Dec 19 ’08 at 18:05

community wiki

Gavin Miller

9

why arent you programming in traditional asp?

– Sergio
Dec 19 ’08 at 18:36

2

I’m sorry, I don’t understand what you’re getting at with your question.

– Gavin Miller
Dec 20 ’08 at 20:05

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged asp.net deployment or ask your own question.

Blog

When laziness is efficient: Make the most of your command line

Ben Popper is the worst coder in the world: Something awry with my array

Featured on Meta

TLS 1.0 and TLS 1.1 removal for Stack Exchange services

Did Stack Exchange cut the number of negative comments nearly in half between…

An account of my meeting with the Stack Overflow management team

Related

661How do you create a dropdownlist from an enum in ASP.NET MVC?724How do you handle multiple submit buttons in ASP.NET MVC Framework?18Add satellite assembly in a pre-compiled deployed website10Minimize startup time for asp.net25How can I make Rails 3 assets precompile faster?22What is the difference between allowing a precompiled Visual Studio Web Page to be updatable and not?1Heroku assets precompile error, despite compiling assets locally7Error CS0433 in large precompiled Asp.net Website Project3Rails – Can I run rake assets:precompile on production server, while the production app is still running?

Hot Network Questions

What should I (a professor) do if a student keeps answering other students’ questions before I start explaining?

Why don’t organs have weighted keys?

Is the graphic designer asking too much of me as a customer?

Why is the Fourier transform so ubiquitous?

One-click: Open terminal, run commands, keep using the terminal

How to say “a<b<c”?

Series of interestingly increasing words!

Points, Hours, Capacity

Why I get “tar: Cowardly refusing to create an empty archive”? when trying to backup the whole server

How to remove spare tire / wheel?

Why the network switch drop the frame acording to ethertype/length?

Is it unethical for a professor to misrepresent the format of an exam?

Result object vs throwing exceptions

Does being under the effect of more than one Sanctuary spell require more than one saving throw?

Lonely Multiplication

Can you Disengage while you are in darkness?

What are these chair-like things in hotels?

P = NP clarification

Corner modelling technique

Does Iran’s sanction play a pivotal role in rejecting papers from a journal?

Reversed Iota’s

What happens if you can’t pay at an auction?

How do we convey scale in 2D games?

Whoever gets there first reaps the most benefits – word for this?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default

Leave a Reply

Your email address will not be published. Required fields are marked *