Skip to content
Snippets Groups Projects
Unverified Commit 75ea4f49 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

exporting NODE_ENV=production for build environments

parent 916acd32
No related branches found
No related tags found
No related merge requests found
...@@ -43,16 +43,17 @@ rocketchat:api ...@@ -43,16 +43,17 @@ rocketchat:api
rocketchat:assets rocketchat:assets
rocketchat:authorization rocketchat:authorization
rocketchat:autolinker rocketchat:autolinker
rocketchat:bot-helpers
rocketchat:cas rocketchat:cas
rocketchat:channel-settings rocketchat:channel-settings
rocketchat:channel-settings-mail-messages rocketchat:channel-settings-mail-messages
rocketchat:colors rocketchat:colors
rocketchat:crowd rocketchat:crowd
rocketchat:custom-oauth rocketchat:custom-oauth
rocketchat:error-handler
rocketchat:emoji rocketchat:emoji
rocketchat:emoji-custom rocketchat:emoji-custom
rocketchat:emoji-emojione rocketchat:emoji-emojione
rocketchat:error-handler
rocketchat:favico rocketchat:favico
rocketchat:file rocketchat:file
rocketchat:file-upload rocketchat:file-upload
...@@ -64,6 +65,8 @@ rocketchat:importer ...@@ -64,6 +65,8 @@ rocketchat:importer
rocketchat:importer-hipchat rocketchat:importer-hipchat
rocketchat:importer-slack rocketchat:importer-slack
rocketchat:integrations rocketchat:integrations
rocketchat:internal-hubot
rocketchat:irc
rocketchat:katex rocketchat:katex
rocketchat:ldap rocketchat:ldap
rocketchat:lib rocketchat:lib
...@@ -119,10 +122,7 @@ rocketchat:version ...@@ -119,10 +122,7 @@ rocketchat:version
rocketchat:videobridge rocketchat:videobridge
rocketchat:webrtc rocketchat:webrtc
rocketchat:wordpress rocketchat:wordpress
#rocketchat:bot-helpers
#rocketchat:chatops #rocketchat:chatops
#rocketchat:internal-hubot
#rocketchat:irc
konecty:change-case konecty:change-case
konecty:delayed-task konecty:delayed-task
......
...@@ -3,6 +3,7 @@ set -x ...@@ -3,6 +3,7 @@ set -x
set -euvo pipefail set -euvo pipefail
# Make meteor bundle # Make meteor bundle
export NODE_ENV=production
cd /opt/app cd /opt/app
meteor build --directory /home/vagrant/ meteor build --directory /home/vagrant/
(cd /home/vagrant/bundle/programs/server && meteor npm install) (cd /home/vagrant/bundle/programs/server && meteor npm install)
......
...@@ -3,4 +3,5 @@ set -x ...@@ -3,4 +3,5 @@ set -x
set -euvo pipefail set -euvo pipefail
export METEOR_SETTINGS='{"public": {"sandstorm": true}}' export METEOR_SETTINGS='{"public": {"sandstorm": true}}'
export NODE_ENV=production
exec node /start.js -p 8000 exec node /start.js -p 8000
#!/usr/bin/env bash #!/usr/bin/env bash
export METEOR_SETTINGS=$(cat settings.json) export METEOR_SETTINGS=$(cat settings.json)
export NODE_ENV=production
meteor add rocketchat:internal-hubot meteorhacks:kadira meteor add rocketchat:internal-hubot meteorhacks:kadira
meteor build --server https://demo.rocket.chat --directory /var/www/rocket.chat meteor build --server https://demo.rocket.chat --directory /var/www/rocket.chat
cd /var/www/rocket.chat/bundle/programs/server cd /var/www/rocket.chat/bundle/programs/server
......
@echo off @echo off
SET METEOR_PRETTY_OUTPUT=0 SET METEOR_PRETTY_OUTPUT=0
SET NODE_ENV="production"
cd packages/rocketchat-livechat/app cd packages/rocketchat-livechat/app
call meteor npm install call meteor npm install --production
call meteor build --directory .meteor/build/ call meteor build --directory .meteor/build/
SET LIVECHAT_DIR="../../../public/livechat" SET LIVECHAT_DIR="../../../public/livechat"
......
export METEOR_PRETTY_OUTPUT=0 export METEOR_PRETTY_OUTPUT=0
export NODE_ENV="production"
export LIVECHAT_DIR="../../../public/livechat" export LIVECHAT_DIR="../../../public/livechat"
export BUILD_DIR="../build" export BUILD_DIR="../build"
export BUNDLE_DIR="../build/bundle/programs/web.browser" export BUNDLE_DIR="../build/bundle/programs/web.browser"
cd packages/rocketchat-livechat/app cd packages/rocketchat-livechat/app
meteor npm install meteor npm install --production
meteor build --directory $BUILD_DIR meteor build --directory $BUILD_DIR
rm -rf $LIVECHAT_DIR rm -rf $LIVECHAT_DIR
......
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