OLD | NEW |
1 WebTry | 1 WebTry |
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 Running Locally | 8 Running Locally |
9 =============== | 9 =============== |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 5. Change /etc/monit/monitrc to: | 55 5. Change /etc/monit/monitrc to: |
56 | 56 |
57 set daemon 2 | 57 set daemon 2 |
58 | 58 |
59 then run the following so it applies: | 59 then run the following so it applies: |
60 | 60 |
61 sudo /etc/init.d/monit restart | 61 sudo /etc/init.d/monit restart |
62 | 62 |
63 This means that monit will poll every two seconds that our application is up and
running. | 63 This means that monit will poll every two seconds that our application is up and
running. |
64 | 64 |
| 65 6. Set the TCP keepalive. For more info see: |
| 66 https://developers.google.com/cloud-sql/docs/gce-access |
| 67 |
| 68 sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' |
| 69 |
65 Do the first time | 70 Do the first time |
66 ----------------- | 71 ----------------- |
67 | 72 |
68 Do the following the first time you setup a machine, and each time you want to u
pdate the code running on the server | 73 Do the following the first time you setup a machine, and each time you want to u
pdate the code running on the server |
69 | 74 |
70 cd ~/skia/experimental/webtry/setup | 75 cd ~/skia/experimental/webtry/setup |
71 ./webtry_setup.sh | 76 ./webtry_setup.sh |
72 | 77 |
73 | 78 |
74 Once, after setup | 79 Once, after setup |
75 ----------------- | 80 ----------------- |
76 | 81 |
77 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 |
78 | 83 |
79 sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry | 84 sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry |
80 | 85 |
OLD | NEW |