Skip to content
Snippets Groups Projects
Unverified Commit e5f4fbdc authored by Brian Peiris's avatar Brian Peiris Committed by GitHub
Browse files

Merge pull request #464 from mozilla/other/resolve-bot-script-security

Remove bot convenience script
parents caad5c06 d6b4c50e
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
"devDependencies": { "devDependencies": {
"docopt": "^0.6.2", "docopt": "^0.6.2",
"puppeteer": "1.1.0", "puppeteer": "1.1.0",
"query-string": "^5.0.1", "query-string": "^5.0.1"
"serve": "^6.5.6"
} }
} }
#!/usr/bin/env sh
script_directory=$(dirname "$0")
script_directory=$(realpath "$script_directory")
echo 'Installing Hubs dependencies'
cd $script_directory/../..
yarn
echo 'Building Hubs'
yarn build > /dev/null
cd $script_directory
echo 'Installing bot dependencies'
yarn
echo 'Running Hubs'
yarn serve --ssl --port 8080 ../../public &
echo 'Running bots'
if [ "$1" != "" ]; then
node run-bot.js --room $1
else
node run-bot.js
fi
trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment