flatcar-scripts/start_devserver
Sean O'Connor 505822a37c adds Devserver support for statically serving versioned updates.
Also decouples it from the chroot when run in serve-only mode.

Review URL: http://codereview.chromium.org/1141001
2010-03-20 23:23:48 -07:00

16 lines
484 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Start the Dev Server after making sure we are running under a chroot.
COMMON_SH="$(dirname "$0")/common.sh"
. "$COMMON_SH"
# Script must be run inside the chroot if not in 'always serve' mode.
[[ $1 != "-a" && assert_inside_chroot ]]
cd ${GCLIENT_ROOT}/src/platform/dev && python devserver.py $*