Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: skfe/build_release

Issue 819473004: Set up the nginx servers for handling *.skia.org traffic. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skfe/README.md ('k') | skfe/sys/nginx_monit » ('j') | skfe/sys/skia_org » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skfe/build_release
diff --git a/skfe/build_release b/skfe/build_release
new file mode 100755
index 0000000000000000000000000000000000000000..2292f293e0b698190d47fc94c674a7a551cc9721
--- /dev/null
+++ b/skfe/build_release
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Builds and uploads a debian package with configuration files for nginx.
+APPNAME=skfe-config
+DESCRIPTION="The local config files for nginx serving *.skiadev.com"
+
+# This package depends upon nginx being installed.
+DEPENDS=nginx
+
+# Copy files into the right locations in ${ROOT}.
+copy_release_files()
+{
+INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root"
+INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root"
+SOFTLINK="sudo ln -s"
+# Configs for the sites we are hosting.
+${INSTALL} --mode=644 -T ./sys/skia_org ${ROOT}/etc/nginx/sites-available/skia_org
+sudo mkdir ${ROOT}/etc/nginx/sites-enabled
+${SOFTLINK} ../sites-available/skia_org ${ROOT}/etc/nginx/sites-enabled/skia_org
+
+# Monitoring.
+${INSTALL} --mode=644 -T ./sys/nginx_monit ${ROOT}/etc/monit/conf.d/nginx
+}
+
+source ../bash/release.sh
« no previous file with comments | « skfe/README.md ('k') | skfe/sys/nginx_monit » ('j') | skfe/sys/skia_org » ('J')

Powered by Google App Engine
This is Rietveld 408576698