Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(608)

Issue 6878053: Serve runtime environment statically.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by teknico
Modified:
11 years, 5 months ago
Reviewers:
mp+138212
Visibility:
Public.

Description

Serve runtime environment statically. Create two new "prod" and "debug" environments, that are served statically by a HTTP Python server. Keep serving the "devel" environment dinamically by node.js, it will be made static later. Make tests run in the "debug" environment. Refactor the Makefile adding some docs and targets. https://code.launchpad.net/~teknico/juju-gui/bug-1078910-serve-app-statically/+merge/138212 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Serve runtime environment statically. #

Total comments: 9

Patch Set 3 : Serve runtime environment statically. #

Total comments: 1

Patch Set 4 : Serve runtime environment statically. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -82 lines) Patch
M .bzrignore View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Makefile View 1 2 3 5 chunks +144 lines, -76 lines 0 comments Download
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/config.js View 1 chunk +1 line, -1 line 0 comments Download
A app/config-debug.js View 1 chunk +11 lines, -0 lines 0 comments Download
M test-server.js View 2 chunks +2 lines, -3 lines 0 comments Download
M test/index.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12
teknico
Please take a look.
11 years, 5 months ago (2012-12-05 15:31:40 UTC) #1
hazmat
https://codereview.appspot.com/6878053/diff/1/Makefile File Makefile (right): https://codereview.appspot.com/6878053/diff/1/Makefile#newcode53 Makefile:53: @echo "doc: generate Sphinx and YuiDoc documentation" awesome, thanks. ...
11 years, 5 months ago (2012-12-05 15:46:57 UTC) #2
matthew.scott
Ready to land. Looks good to me, thanks for the work!
11 years, 5 months ago (2012-12-05 16:37:24 UTC) #3
teknico
Please take a look.
11 years, 5 months ago (2012-12-05 17:54:22 UTC) #4
benji
This branch will be a big improvement. I would like to re-review after you respond ...
11 years, 5 months ago (2012-12-05 20:37:17 UTC) #5
gary.poster
Land with changes (from both me and Benji). Thank you Nicola. This will be very ...
11 years, 5 months ago (2012-12-06 03:38:12 UTC) #6
gary.poster
On 2012/12/06 03:38:12, gary.poster wrote: > Land with changes (from both me and Benji). > ...
11 years, 5 months ago (2012-12-06 03:42:40 UTC) #7
teknico
Please take a look.
11 years, 5 months ago (2012-12-06 19:44:16 UTC) #8
teknico
gary.poster wrote: > I talked with Benji about this. He is OK with you landing ...
11 years, 5 months ago (2012-12-06 19:47:35 UTC) #9
benji
This looks great. I had one suggestion about target names. https://codereview.appspot.com/6878053/diff/10001/Makefile File Makefile (right): https://codereview.appspot.com/6878053/diff/10001/Makefile#newcode243 ...
11 years, 5 months ago (2012-12-06 20:09:35 UTC) #10
teknico
*** Submitted: Serve runtime environment statically. Create two new "prod" and "debug" environments, that are ...
11 years, 5 months ago (2012-12-07 11:50:18 UTC) #11
teknico
11 years, 5 months ago (2012-12-07 14:12:06 UTC) #12
benji wrote:
> The make "Standard Targets" docs
> (https://www.gnu.org/prep/standards/html_node/Standard-Targets.html) and
> the principal of least surprise suggest that "make clean" should clean
> everything that the make file builds.

It does clean everything that the "make" invocation with no target builds.

Now that "make" builds the production and debug environment, I found it useful
that "make clean" cleaned those environments only, while developing.

> The same chapter suggests "mostlyclean" to clean the things that people
> "normally" want to clean.  That sounds reasonable to me.

Not to me, actually, it sounds rather weird. :-) I like "clean-all" better.

I wonder what our colleagues think?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b