Index: experimental/webtry/README.md |
diff --git a/experimental/webtry/README.md b/experimental/webtry/README.md |
index b95e46bc758b1fdc610e7ffad53e26c715ea461f..609a84b1beab7a9478de54da79a65c5fbd4691aa 100644 |
--- a/experimental/webtry/README.md |
+++ b/experimental/webtry/README.md |
@@ -1,10 +1,11 @@ |
-WebTry |
-====== |
+WebTry Server |
+============= |
Allows trying out Skia code in the browser. Run a local webserver |
and from the pages it serves try out Skia code and see the results |
immediately. To make sandboxing easier this must be built w/GPU off. |
+ |
Running Locally |
=============== |
@@ -19,8 +20,9 @@ Then visit http://localhost:8000 in your browser. |
Only tested under linux, doubtful it will work on other platforms. |
-Full Server Setup |
-================= |
+ |
+Server Setup |
+============ |
Create a GCE instance: |
@@ -38,24 +40,28 @@ SSH into the instance: |
gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtry-b |
-Do once |
-------- |
+Do the first time |
+================= |
+ |
+The following things only need to be done once. |
-The following things only need to be done once |
+1. SSH into the server as default. |
+2. sudo apt-get install git schroot debootstrap |
+3. git clone https://skia.googlesource.com/skia |
+4. cd ~/skia/experimental/webtry/setup |
+5. ./webtry_setup.sh |
-1. sudo apt-get install git schroot debootstrap |
-2. git clone https://skia.googlesource.com/skia |
-3. Add the following to /etc/fstab and reboot: |
+6. Add the following to /etc/fstab and reboot: |
none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 |
The above will allow ninja to run. See http://stackoverflow.com/questions/2009278/python-multiprocessing-permission-denied |
-4. Add the following to the /etc/schroot/minimal/fstab: |
+7. Add the following to the /etc/schroot/minimal/fstab: |
/home/webtry/inout /inout none rw,bind 0 0 |
-5. Change /etc/monit/monitrc to: |
+8. Change /etc/monit/monitrc to: |
set daemon 2 |
@@ -65,30 +71,30 @@ then run the following so it applies: |
This means that monit will poll every two seconds that our application is up and running. |
-6. Set the TCP keepalive. For more info see: |
+9. Set the TCP keepalive. For more info see: |
https://developers.google.com/cloud-sql/docs/gce-access |
sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' |
-Do the first time |
------------------ |
- |
-Do the following the first time you setup a machine, and each time you want to update the code running on the server |
+Once, after setup |
+================= |
- cd ~/skia/experimental/webtry/setup |
- ./webtry_setup.sh |
+Do this step only once, but only after running webtry_setup.sh the first time. |
+ sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry |
-Once, after setup |
------------------ |
-Do this step only once, but only after running webtry_setup.sh the first time |
+To update the code |
+================== |
- sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry |
+1. SSH into the server as default. |
+2. cd ~/skia/experimental/webtry/setup |
+3. git pull |
+4. ./webtry_setup.sh |
Third Party Code |
----------------- |
+================ |
* res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update |
see poly/README.md. |