mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Bump file-descriptor ulimit as high as it will go on startup and remove previous workaround.
This reverts commit a7c11b167e. See https://app.asana.com/0/364581412985/472479912325
This commit is contained in:
@@ -388,8 +388,7 @@ var DependencyWatcher = function (deps, app_dir, on_change) {
|
||||
return new RegExp(pattern);
|
||||
});
|
||||
self.exclude_paths = [
|
||||
path.join(app_dir, '.meteor', 'local'),
|
||||
path.join(app_dir, 'public')
|
||||
path.join(app_dir, '.meteor', 'local')
|
||||
];
|
||||
|
||||
// Start monitoring
|
||||
|
||||
13
meteor
13
meteor
@@ -78,5 +78,18 @@ else
|
||||
METEOR="$DEV_BUNDLE/app/meteor/meteor.js"
|
||||
fi
|
||||
|
||||
|
||||
# Bump our file descriptor ulimit as high as it will go. This is a
|
||||
# temporary workaround for dependancy watching holding open too many
|
||||
# files: https://app.asana.com/0/364581412985/472479912325
|
||||
if [ "$(ulimit -n)" != "unlimited" ] ; then
|
||||
ulimit -n 16384 > /dev/null 2>&1 || \
|
||||
ulimit -n 8192 > /dev/null 2>&1 || \
|
||||
ulimit -n 4096 > /dev/null 2>&1 || \
|
||||
ulimit -n 2048 > /dev/null 2>&1 || \
|
||||
ulimit -n 1024 > /dev/null 2>&1 || \
|
||||
ulimit -n 512 > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
export NODE_PATH="$DEV_BUNDLE/lib/node_modules"
|
||||
exec "$DEV_BUNDLE/bin/node" "$METEOR" "$@"
|
||||
|
||||
Reference in New Issue
Block a user