Skip to content

Commit d0515b6

Browse files
committed
prepare-for-deployment
1 parent f679c34 commit d0515b6

File tree

2 files changed

+85
-82
lines changed

2 files changed

+85
-82
lines changed

appengine/app.yaml

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
1-
application: blockly-demo
2-
version: 1
3-
runtime: python27
4-
api_version: 1
5-
threadsafe: no
6-
7-
handlers:
8-
# Redirect obsolete URLs.
9-
# Blockly files moved from /blockly to /static on 5 Dec 2012.
10-
- url: /blockly/.*
11-
static_files: redirect.html
12-
upload: redirect.html
13-
# Code, Maze and Turtle moved from demos on 29 Dec 2012.
14-
- url: /static/demos/(maze|turtle)/.*
15-
static_files: redirect.html
16-
upload: redirect.html
17-
# Apps was disbanded on 20 Nov 2014.
18-
- url: /static/apps/.*
19-
static_files: redirect.html
20-
upload: redirect.html
21-
22-
23-
# Storage API.
24-
- url: /storage
25-
script: storage.py
26-
secure: always
27-
- url: /storage\.js
28-
static_files: storage.js
29-
upload: storage\.js
30-
secure: always
31-
32-
# Blockly files.
33-
- url: /static
34-
static_dir: static
35-
secure: always
36-
37-
# Closure library for uncompiled Blockly.
38-
- url: /closure-library
39-
static_dir: closure-library
40-
secure: always
41-
42-
# Redirect for root directory.
43-
- url: /
44-
script: index_redirect.py
45-
secure: always
46-
47-
# Favicon.
48-
- url: /favicon\.ico
49-
static_files: favicon.ico
50-
upload: favicon\.ico
51-
secure: always
52-
expiration: "30d"
53-
54-
# Apple icon.
55-
- url: /apple-touch-icon\.png
56-
static_files: apple-touch-icon.png
57-
upload: apple-touch-icon\.png
58-
secure: always
59-
expiration: "30d"
60-
61-
# robot.txt
62-
- url: /robots\.txt
63-
static_files: robots.txt
64-
upload: robots\.txt
65-
secure: always
66-
67-
68-
skip_files:
69-
# App Engine default patterns.
70-
- ^(.*/)?#.*#$
71-
- ^(.*/)?.*~$
72-
- ^(.*/)?.*\.py[co]$
73-
- ^(.*/)?.*/RCS/.*$
74-
- ^(.*/)?\..*$
75-
# Custom skip patterns.
76-
- ^static/appengine/.*$
77-
- ^static/demos/plane/soy/.+\.jar$
78-
- ^static/demos/plane/template.soy$
79-
- ^static/demos/plane/xlf/.*$
80-
- ^static/i18n/.*$
81-
- ^static/msg/json/.*$
82-
- ^.+\.soy$
1+
application: robotblocks
2+
version: 1
3+
runtime: python27
4+
api_version: 1
5+
threadsafe: no
6+
7+
handlers:
8+
# Redirect obsolete URLs.
9+
# Blockly files moved from /blockly to /static on 5 Dec 2012.
10+
- url: /blockly/.*
11+
static_files: redirect.html
12+
upload: redirect.html
13+
# Code, Maze and Turtle moved from demos on 29 Dec 2012.
14+
- url: /static/demos/(maze|turtle)/.*
15+
static_files: redirect.html
16+
upload: redirect.html
17+
# Apps was disbanded on 20 Nov 2014.
18+
- url: /static/apps/.*
19+
static_files: redirect.html
20+
upload: redirect.html
21+
22+
23+
# Storage API.
24+
- url: /storage
25+
script: storage.py
26+
secure: always
27+
- url: /storage\.js
28+
static_files: storage.js
29+
upload: storage\.js
30+
secure: always
31+
32+
# Blockly files.
33+
- url: /static
34+
static_dir: static
35+
secure: always
36+
37+
# Closure library for uncompiled Blockly.
38+
- url: /closure-library
39+
static_dir: closure-library
40+
secure: always
41+
42+
# Redirect for root directory.
43+
- url: /
44+
script: index_redirect.py
45+
secure: always
46+
47+
# Favicon.
48+
- url: /favicon\.ico
49+
static_files: favicon.ico
50+
upload: favicon\.ico
51+
secure: always
52+
expiration: "30d"
53+
54+
# Apple icon.
55+
- url: /apple-touch-icon\.png
56+
static_files: apple-touch-icon.png
57+
upload: apple-touch-icon\.png
58+
secure: always
59+
expiration: "30d"
60+
61+
# robot.txt
62+
- url: /robots\.txt
63+
static_files: robots.txt
64+
upload: robots\.txt
65+
secure: always
66+
67+
68+
skip_files:
69+
# App Engine default patterns.
70+
- ^(.*/)?#.*#$
71+
- ^(.*/)?.*~$
72+
- ^(.*/)?.*\.py[co]$
73+
- ^(.*/)?.*/RCS/.*$
74+
- ^(.*/)?\..*$
75+
# Custom skip patterns.
76+
- ^static/appengine/.*$
77+
- ^static/demos/plane/soy/.+\.jar$
78+
- ^static/demos/plane/template.soy$
79+
- ^static/demos/plane/xlf/.*$
80+
- ^static/i18n/.*$
81+
- ^static/msg/json/.*$
82+
- ^.+\.soy$

appengine/prepare.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mkdir static
2+
cp ../*_*compr*.js static
3+
rsync -a ../{core,generators,media,tests,demos} static

0 commit comments

Comments
 (0)