diff --git a/.meteor/packages b/.meteor/packages index d1577f5c7d2..cbbf5666b60 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -43,16 +43,17 @@ rocketchat:api rocketchat:assets rocketchat:authorization rocketchat:autolinker +rocketchat:bot-helpers rocketchat:cas rocketchat:channel-settings rocketchat:channel-settings-mail-messages rocketchat:colors rocketchat:crowd rocketchat:custom-oauth -rocketchat:error-handler rocketchat:emoji rocketchat:emoji-custom rocketchat:emoji-emojione +rocketchat:error-handler rocketchat:favico rocketchat:file rocketchat:file-upload @@ -64,6 +65,8 @@ rocketchat:importer rocketchat:importer-hipchat rocketchat:importer-slack rocketchat:integrations +rocketchat:internal-hubot +rocketchat:irc rocketchat:katex rocketchat:ldap rocketchat:lib @@ -119,10 +122,7 @@ rocketchat:version rocketchat:videobridge rocketchat:webrtc rocketchat:wordpress -#rocketchat:bot-helpers #rocketchat:chatops -#rocketchat:internal-hubot -#rocketchat:irc konecty:change-case konecty:delayed-task diff --git a/.sandstorm/build.sh b/.sandstorm/build.sh index 86446e54190..326ba32bc12 100755 --- a/.sandstorm/build.sh +++ b/.sandstorm/build.sh @@ -3,6 +3,7 @@ set -x set -euvo pipefail # Make meteor bundle +export NODE_ENV=production cd /opt/app meteor build --directory /home/vagrant/ (cd /home/vagrant/bundle/programs/server && meteor npm install) diff --git a/.sandstorm/launcher.sh b/.sandstorm/launcher.sh index e3151a12af9..64ae4fd0ad8 100755 --- a/.sandstorm/launcher.sh +++ b/.sandstorm/launcher.sh @@ -3,4 +3,5 @@ set -x set -euvo pipefail export METEOR_SETTINGS='{"public": {"sandstorm": true}}' +export NODE_ENV=production exec node /start.js -p 8000 diff --git a/example-build.sh b/example-build.sh index 5a3fdc5d90e..beae36b9854 100755 --- a/example-build.sh +++ b/example-build.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash export METEOR_SETTINGS=$(cat settings.json) +export NODE_ENV=production meteor add rocketchat:internal-hubot meteorhacks:kadira meteor build --server https://demo.rocket.chat --directory /var/www/rocket.chat cd /var/www/rocket.chat/bundle/programs/server diff --git a/packages/rocketchat-livechat/plugin/build.bat b/packages/rocketchat-livechat/plugin/build.bat index 89bfd350727..83948ffaec3 100644 --- a/packages/rocketchat-livechat/plugin/build.bat +++ b/packages/rocketchat-livechat/plugin/build.bat @@ -1,8 +1,9 @@ @echo off SET METEOR_PRETTY_OUTPUT=0 +SET NODE_ENV="production" cd packages/rocketchat-livechat/app -call meteor npm install +call meteor npm install --production call meteor build --directory .meteor/build/ SET LIVECHAT_DIR="../../../public/livechat" diff --git a/packages/rocketchat-livechat/plugin/build.sh b/packages/rocketchat-livechat/plugin/build.sh index 227e6ad4cd7..4051cec13a5 100644 --- a/packages/rocketchat-livechat/plugin/build.sh +++ b/packages/rocketchat-livechat/plugin/build.sh @@ -1,10 +1,11 @@ export METEOR_PRETTY_OUTPUT=0 +export NODE_ENV="production" export LIVECHAT_DIR="../../../public/livechat" export BUILD_DIR="../build" export BUNDLE_DIR="../build/bundle/programs/web.browser" cd packages/rocketchat-livechat/app -meteor npm install +meteor npm install --production meteor build --directory $BUILD_DIR rm -rf $LIVECHAT_DIR