exporting NODE_ENV=production for build environments

pull/4623/head^2
Gabriel Engel 9 years ago
parent 916acd324e
commit 75ea4f49f9
No known key found for this signature in database
GPG Key ID: A9FF0AD7DEE40258
  1. 8
      .meteor/packages
  2. 1
      .sandstorm/build.sh
  3. 1
      .sandstorm/launcher.sh
  4. 1
      example-build.sh
  5. 3
      packages/rocketchat-livechat/plugin/build.bat
  6. 3
      packages/rocketchat-livechat/plugin/build.sh

@ -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

@ -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)

@ -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

@ -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

@ -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"

@ -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

Loading…
Cancel
Save