mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
52f8fc9ba3
* Run node 10 with '--experimental_worker' flags * Use dedicated function to retrieve node/npm program version The goal of this commit is to ensure that any linux based node 10 deployments run with the experimental_worker flag. This flag is required for workers to "work" in node 10. This will not affect other versions of node. This resolves #4335 where Docker would fail due to being based on node 10.
25 lines
933 B
Bash
Executable file
25 lines
933 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Run Etherpad directly, assuming all the dependencies are already installed.
|
|
#
|
|
# Useful for developers, or users that know what they are doing. If you just
|
|
# upgraded Etherpad version, installed a new dependency, or are simply unsure
|
|
# of what to do, please execute bin/installDeps.sh once before running this
|
|
# script.
|
|
|
|
set -eu
|
|
|
|
# source: https://stackoverflow.com/questions/59895/how-to-get-the-source-directory-of-a-bash-script-from-within-the-script-itself#246128
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
# Source constants and usefull functions
|
|
. ${DIR}/../bin/functions.sh
|
|
|
|
echo "Running directly, without checking/installing dependencies"
|
|
|
|
# move to the base Etherpad directory. This will be necessary until Etherpad
|
|
# learns to run from arbitrary CWDs.
|
|
cd "${DIR}/.."
|
|
|
|
# run Etherpad main class
|
|
node $(compute_node_args) "${DIR}/../node_modules/ep_etherpad-lite/node/server.js" "$@"
|