run2.sh 930 B

1234567891011121314151617181920
  1. if [ "$USER" == "huguanrui" ]; then
  2. export LOG_DIR=/Users/huguanrui/git/src/github.com/matrix-org/dendrite/log
  3. export ENABLE_MONITOR="false"
  4. export MONITOR_PORT="7000"
  5. export RUN_ENV="huguanrui"
  6. export SERVER_NAME="dendrite2"
  7. sh ./config/env.sh
  8. ./bin/engine-server --name=monolith-server --config=./config/dendrite.yaml --http-address=:8009
  9. #./bin/engine-server --name=front-server --config=./config/dendrite.yaml --http-address=:8008
  10. elif [ "$USER" == "joey" ]; then
  11. export LOG_DIR=./log
  12. export ENABLE_MONITOR="false"
  13. export MONITOR_PORT="7000"
  14. export RUN_ENV="joey"
  15. sh ./config/env.sh
  16. ./bin/engine-server --name=monolith-server --config=./config/dendrite.yaml --http-address=:8008
  17. else
  18. export LOG_DIR=/root/dendrite/dendrite/log
  19. ./bin/dendrite-monolith-server --config=./config/dendrite-release.yaml --tls-cert=./config/server.crt --tls-key=./config/server.key
  20. fi