OLD | NEW |
---|---|
1 WebTry Server | 1 WebTry Server |
2 ============= | 2 ============= |
3 | 3 |
4 Allows trying out Skia code in the browser. Run a local webserver | 4 Allows trying out Skia code in the browser. Run a local webserver |
5 and from the pages it serves try out Skia code and see the results | 5 and from the pages it serves try out Skia code and see the results |
6 immediately. To make sandboxing easier this must be built w/GPU off. | 6 immediately. To make sandboxing easier this must be built w/GPU off. |
7 | 7 |
8 | 8 |
9 Running Locally | 9 Running Locally |
10 =============== | 10 =============== |
(...skipping 28 matching lines...) Expand all Loading... | |
39 | 39 |
40 gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtr y-b | 40 gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtr y-b |
41 | 41 |
42 | 42 |
43 Do the first time | 43 Do the first time |
44 ================= | 44 ================= |
45 | 45 |
46 The following things only need to be done once. | 46 The following things only need to be done once. |
47 | 47 |
48 1. SSH into the server as default. | 48 1. SSH into the server as default. |
49 2. sudo apt-get install git schroot debootstrap | 49 2. sudo apt-get install git |
tfarina
2014/10/02 22:01:20
changes lgtm.
| |
50 3. git clone https://skia.googlesource.com/skia | 50 3. git clone https://skia.googlesource.com/skia |
51 4. cd ~/skia/experimental/webtry/setup | 51 4. cd ~/skia/experimental/webtry/setup |
52 5. ./webtry_setup.sh | 52 5. ./webtry_setup.sh |
53 | 53 |
54 6. Add the following to /etc/fstab and reboot: | 54 6. Add the following to /etc/fstab and reboot: |
55 | 55 |
56 none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 | 56 none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 |
57 | 57 |
58 The above will allow ninja to run. See http://stackoverflow.com/questions/200927 8/python-multiprocessing-permission-denied | 58 The above will allow ninja to run. See http://stackoverflow.com/questions/200927 8/python-multiprocessing-permission-denied |
59 | 59 |
60 7. Add the following to the /etc/schroot/minimal/fstab: | 60 7. Add the following to the /etc/schroot/minimal/fstab: |
61 | 61 |
62 /home/webtry/inout /inout none rw,bind 0 0 | 62 /home/webtry/inout /inout none rw,bind 0 0 |
63 | 63 |
64 8. Change /etc/monit/monitrc to: | 64 8. Change /etc/monit/monitrc to: |
65 | 65 |
66 set daemon 2 | 66 set daemon 2 |
67 | 67 |
68 then run the following so it applies: | 68 then run the following so it applies: |
69 | 69 |
70 sudo /etc/init.d/monit restart | 70 sudo /etc/init.d/monit restart |
71 | 71 |
72 This means that monit will poll every two seconds that our application is up and running. | 72 This means that monit will poll every two seconds that our application is up and running. |
73 | 73 |
74 9. Set the TCP keepalive. For more info see: | 74 9. Set the TCP keepalive. For more info see: |
75 https://developers.google.com/cloud-sql/docs/gce-access | 75 https://developers.google.com/cloud-sql/docs/gce-access |
76 | 76 |
77 sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' | 77 sudo sh -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' |
78 | 78 |
79 Once, after setup | 79 Once, after setup |
80 ================= | 80 ================= |
81 | 81 |
82 Do this step only once, but only after running webtry_setup.sh the first time. | 82 Do this step only once, but only after running webtry_setup.sh the first time. |
83 | 83 |
84 sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry | 84 sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry |
85 | 85 |
86 | 86 |
87 To update the code | 87 To update the code |
88 ================== | 88 ================== |
89 | 89 |
90 1. SSH into the server as default. | 90 1. SSH into the server as default. |
91 2. cd ~/skia/experimental/webtry/setup | 91 2. cd ~/skia/experimental/webtry/setup |
92 3. git pull | 92 3. git pull |
93 4. ./webtry_setup.sh | 93 4. ./webtry_setup.sh |
94 | 94 |
95 | 95 |
96 Third Party Code | 96 Third Party Code |
97 ================ | 97 ================ |
98 | 98 |
99 * res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update | 99 * res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update |
100 see poly/README.md. | 100 see poly/README.md. |
OLD | NEW |