From patchwork Tue Oct 18 19:26:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 4735 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id ACFD623E0B for ; Tue, 18 Oct 2011 19:26:16 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 764A2A186A3 for ; Tue, 18 Oct 2011 19:26:16 +0000 (UTC) Received: by gyf1 with SMTP id 1so1335523gyf.11 for ; Tue, 18 Oct 2011 12:26:16 -0700 (PDT) Received: by 10.223.60.73 with SMTP id o9mr5901113fah.18.1318965975616; Tue, 18 Oct 2011 12:26:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.1.71 with SMTP id 7cs58731lak; Tue, 18 Oct 2011 12:26:15 -0700 (PDT) Received: by 10.227.29.21 with SMTP id o21mr1571795wbc.87.1318965974043; Tue, 18 Oct 2011 12:26:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gd5si2453830wbb.63.2011.10.18.12.26.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Oct 2011 12:26:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RGFIj-0008Dt-6F for ; Tue, 18 Oct 2011 19:26:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 143D0E0030 for ; Tue, 18 Oct 2011 19:26:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 273 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 273: Fix setup-dev-env.sh so that it works again Message-Id: <20111018192613.7255.42147.launchpad@ackee.canonical.com> Date: Tue, 18 Oct 2011 19:26:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14157"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: bc9a4aa8a7546fa8bea81f78ed17363d77d71000 Merge authors: Paul Larson (pwlars) Related merge proposals: https://code.launchpad.net/~pwlars/lava-dashboard/fix-setup-dev-env/+merge/77770 proposed by: Paul Larson (pwlars) review: Approve - Zygmunt Krynicki (zkrynicki) ------------------------------------------------------------ revno: 273 [merge] committer: Paul Larson branch nick: lava-dashboard timestamp: Tue 2011-10-18 14:24:39 -0500 message: Fix setup-dev-env.sh so that it works again modified: setup-dev-env.sh --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'setup-dev-env.sh' --- setup-dev-env.sh 2011-06-26 09:13:57 +0000 +++ setup-dev-env.sh 2011-09-30 23:45:49 +0000 @@ -49,14 +49,14 @@ # rm -rf dashboard_server/media/$DEVEL_DB/ fi echo " * building cache of static files (as symlinks)" - lava-server build_static --link --noinput --verbosity=0 + lava-server manage -d build_static --link --noinput --verbosity=0 echo " * creating fresh database" - lava-server syncdb --noinput -v0 - lava-server migrate -v0 + lava-server manage -d syncdb --noinput -v0 + lava-server manage -d migrate -v0 for FIXTURE_PATHNAME in $ROOT/dashboard_app/fixtures/hacking_*.json; do FIXTURE=$(basename $FIXTURE_PATHNAME .json) echo " * importing data: $FIXTURE" - lava-server loaddata -v0 $FIXTURE + lava-server manage -d loaddata -v0 $FIXTURE done echo " * starting development server in the background" # Django debug server uses some thread magic to do autoreload. The problem @@ -64,7 +64,7 @@ # cannot kill (yay for services on linux). Now that's a cheesy way to kill # both reliably (or so it seems, I cannot explain it really). So yes, we # spawn an xterm and sleep for a while. Shell engineering... - xterm -e lava-server runserver 0.0.0.0:$PORT & + xterm -e lava-server manage -d runserver 0.0.0.0:$PORT & SERVER_PID=$! echo " * waiting for server to start up" sleep 5 @@ -89,7 +89,7 @@ echo "All done!" echo echo "To get started run:" - echo " DEVEL_DB=$DEVEL_DB lava-server runserver 0.0.0.0:$PORT" + echo " DEVEL_DB=$DEVEL_DB lava-server manage -d runserver 0.0.0.0:$PORT" echo echo "Remeber, username: admin" echo " password: admin"