2015-02-19 20:10:52 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-03-23 11:48:02 -07:00
|
|
|
# Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the BSD-style license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
2015-04-22 16:30:27 -07:00
|
|
|
if [ $REACT_PACKAGER_LOG ];
|
|
|
|
then
|
|
|
|
echo "Logs will be redirected to $REACT_PACKAGER_LOG"
|
|
|
|
exec &> $REACT_PACKAGER_LOG
|
|
|
|
fi
|
|
|
|
|
2015-02-19 20:10:52 -08:00
|
|
|
ulimit -n 4096
|
|
|
|
|
|
|
|
THIS_DIR=$(dirname "$0")
|
2015-03-26 12:46:20 -07:00
|
|
|
node "$THIS_DIR/packager.js" "$@"
|