| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtr
y-b | 46 gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtr
y-b |
| 47 | 47 |
| 48 | 48 |
| 49 Do the first time | 49 Do the first time |
| 50 ================= | 50 ================= |
| 51 | 51 |
| 52 The following things only need to be done once. | 52 The following things only need to be done once. |
| 53 | 53 |
| 54 1. SSH into the server as default. | 54 1. SSH into the server as default. |
| 55 | 55 2. sudo apt-get install git |
| 56 2. sudo apt-get install git schroot debootstrap | 56 3. git clone https://skia.googlesource.com/skia |
| 57 4. cd ~/skia/experimental/webtry/setup |
| 58 5. ./webtry_setup.sh |
| 57 | 59 |
| 58 3. Add the following to the /etc/schroot/minimal/fstab: | 60 3. Add the following to the /etc/schroot/minimal/fstab: |
| 59 | 61 |
| 60 none /run/shm tmpfs rw,nosuid,nodev,noexec 0 0 | 62 none /run/shm tmpfs rw,nosuid,nodev,noexec 0 0 |
| 61 /home/webtry/inout /skia_build/inout none rw,bind 0
0 | 63 /home/webtry/inout /skia_build/inout none rw,bind 0
0 |
| 62 /home/webtry/cache /skia_build/cache none rw,bind 0
0 | 64 /home/webtry/cache /skia_build/cache none rw,bind 0
0 |
| 63 | 65 |
| 64 | 66 |
| 65 4. git clone https://skia.googlesource.com/skia | 67 4. git clone https://skia.googlesource.com/skia |
| 66 | 68 |
| 67 5. cd ~/skia/experimental/webtry/setup | 69 5. cd ~/skia/experimental/webtry/setup |
| 68 | 70 |
| 69 6. ./webtry_setup.sh | 71 6. ./webtry_setup.sh |
| 70 | 72 |
| 71 7. Change /etc/monit/monitrc to: | 73 7. Change /etc/monit/monitrc to: |
| 72 | 74 |
| 73 set daemon 2 | 75 set daemon 2 |
| 74 | 76 |
| 75 then run the following so it applies: | 77 then run the following so it applies: |
| 76 | 78 |
| 77 sudo /etc/init.d/monit restart | 79 sudo /etc/init.d/monit restart |
| 78 | 80 |
| 79 This means that monit will poll every two seconds that our application is up and
running. | 81 This means that monit will poll every two seconds that our application is up and
running. |
| 80 | 82 |
| 81 8. Set the TCP keepalive. For more info see: | 83 8. Set the TCP keepalive. For more info see: |
| 82 https://developers.google.com/cloud-sql/docs/gce-access | 84 https://developers.google.com/cloud-sql/docs/gce-access |
| 83 | 85 |
| 84 sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' | 86 sudo sh -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' |
| 85 | 87 |
| 86 To update the code | 88 To update the code |
| 87 ================== | 89 ================== |
| 88 | 90 |
| 89 1. SSH into the server as default. | 91 1. SSH into the server as default. |
| 90 2. cd ~/skia/experimental/webtry/setup | 92 2. cd ~/skia/experimental/webtry/setup |
| 91 3. git pull | 93 3. git pull |
| 92 4. ./webtry_setup.sh | 94 4. ./webtry_setup.sh |
| 93 | 95 |
| 94 Third Party Code | 96 Third Party Code |
| 95 ================ | 97 ================ |
| 96 | 98 |
| 97 * 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 |
| 98 see poly/README.md. | 100 see poly/README.md. |
| OLD | NEW |