parent
39c6ba6670
commit
7d7be62247
@ -1,10 +0,0 @@ |
||||
#!/bin/bash |
||||
source ./build-info.sh |
||||
export METEOR_SETTINGS=$(cat settings.json) |
||||
meteor add rocketchat:external |
||||
meteor add rocketchat:hubot |
||||
meteor build --server https://demo.rocket.chat --directory /var/www/rocket.chat |
||||
cd /var/www/rocket.chat/bundle/programs/server |
||||
npm install |
||||
cd /var/www/rocket.chat/current |
||||
pm2 startOrRestart /var/www/rocket.chat/current/pm2.json |
@ -1,7 +1,7 @@ |
||||
@visitorId = new ReactiveVar null |
||||
|
||||
Meteor.startup -> |
||||
if not localStorage.getItem('rocketChatExternal')? |
||||
localStorage.setItem('rocketChatExternal', Random.id()) |
||||
if not localStorage.getItem('rocketChatLivechat')? |
||||
localStorage.setItem('rocketChatLivechat', Random.id()) |
||||
|
||||
visitorId.set localStorage.getItem('rocketChatExternal') |
||||
visitorId.set localStorage.getItem('rocketChatLivechat') |
||||
|
@ -1,16 +1,16 @@ |
||||
cd packages/rocketchat-external/app |
||||
cd packages/rocketchat-livechat/app |
||||
meteor build .meteor/build/ --directory |
||||
|
||||
mkdir -p ../public |
||||
|
||||
rm -f ../public/external.css |
||||
rm -f ../public/external.js |
||||
rm -f ../public/livechat.css |
||||
rm -f ../public/livechat.js |
||||
rm -f ../public/head.html |
||||
|
||||
cp .meteor/build/bundle/programs/web.browser/*.css ../public/external.css |
||||
cp .meteor/build/bundle/programs/web.browser/*.js ../public/external.js |
||||
cp .meteor/build/bundle/programs/web.browser/*.css ../public/livechat.css |
||||
cp .meteor/build/bundle/programs/web.browser/*.js ../public/livechat.js |
||||
cp .meteor/build/bundle/programs/web.browser/head.html ../public/head.html |
||||
|
||||
# echo "body {background-color: red;}" > external.css |
||||
# echo "body {background-color: red;}" > livechat.css |
||||
|
||||
rm -rf .meteor/build/ |
||||
rm -rf .meteor/build/ |
||||
|
Loading…
Reference in new issue