Fix the Web UI building issue

Change-Id: Ic5d919331f2cc23132212a3a1e729ed153102a37
This commit is contained in:
Yichen Wang 2015-11-10 13:37:44 -08:00
parent e0408bb653
commit 52df31f156
3 changed files with 11 additions and 14 deletions

View File

@ -50,7 +50,7 @@ sed -i 's/start-stop-daemon\ --start/ulimit\ \-n\ 102400\n\t\0/g' /etc/init.d/ng
# Auto start the KloudBuster Agent, with user-data
sed -i "s/^exit\s0/cd \/kb_test\n\0/g" /etc/rc.local
sed -i "s/^exit\s0/wget http\:\/\/169.254.169.254\/latest\/user-data\n\0/g" /etc/rc.local
sed -i "s/^exit\s0/if wget http\:\/\/169.254.169.254\/latest\/user-data; then \:; fi\n\0/g" /etc/rc.local
sed -i "s/^exit\s0/python \/kb_test\/kb_vm_agent.py \&\n\0/g" /etc/rc.local
@ -90,8 +90,6 @@ npm install -g grunt-cli bower
npm install
bower install --allow-root --config.interactive=false --force
grunt build
rm -rf ../kb_server/public/ui/*
mkdir -p ../kb_server/public/ui
mv dist/* ../kb_server/public/ui

View File

@ -294,7 +294,7 @@ if __name__ == "__main__":
except Exception as e:
# KloudBuster starts without user-data
cwd = 'kloudbuster/kb_server'
cmd = ['python', 'config.py', 'develop']
cmd = ['python', 'setup.py', 'develop']
rc = exec_command(cmd, cwd=cwd)
if not rc:
cmd = ['pecan', 'serve', 'config.py']

View File

@ -2,15 +2,15 @@
"name": "kb-web",
"version": "0.0.1",
"dependencies": {
"angular": "1.3.0",
"angular-animate": "~1.3.0",
"angular": "~1.4.5",
"angular-animate": "~1.4.5",
"angular-bootstrap": "~0.13.0",
"angular-cookies": "~1.3.0",
"angular-resource": "~1.3.0",
"angular-route": "~1.3.0",
"angular-sanitize": "~1.3.0",
"angular-touch": "~1.3.0",
"bootstrap": "~3.2.0",
"angular-cookies": "~1.4.5",
"angular-resource": "~1.4.5",
"angular-route": "~1.4.5",
"angular-sanitize": "~1.4.5",
"angular-touch": "~1.4.5",
"bootstrap": "~3.3.5",
"d3": "~3.5.6",
"moment": "~2.10.6",
"ng-table": "~0.8.3",
@ -18,7 +18,7 @@
"jquery-touchswipe": "~1.6.12"
},
"devDependencies": {
"angular-mocks": "^1.3.0"
"angular-mocks": "^1.4.5"
},
"appPath": "app",
"moduleName": "kbWebApp",
@ -30,6 +30,5 @@
"dist/js/bootstrap.js"
]
}
}
}