run.sh 1.3 KB

123456789101112131415161718192021222324252627
  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. sh ./config/env.sh
  7. ./bin/engine-server --name=monolith-server --config=./config/dendrite.yaml --http-address=:8008 --https-address=:443 --tls-cert=./config/server.crt --tls-key=./config/server.key
  8. #./bin/engine-server --name=front-server --config=./config/dendrite.yaml --http-address=:8008
  9. #./bin/engine-server --name=api-gw --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. elif [ "$USER" == "letolin" ]; then
  18. export LOG_DIR=./log
  19. export ENABLE_MONITOR="false"
  20. export MONITOR_PORT="7000"
  21. export RUN_ENV="letolin"
  22. sh ./config/env.sh
  23. ./bin/engine-server --name=monolith-server --config=./config/dendrite.yaml --http-address=:8008
  24. else
  25. export LOG_DIR=/root/dendrite/dendrite/log
  26. ./bin/dendrite-monolith-server --config=./config/dendrite-release.yaml --tls-cert=./config/server.crt --tls-key=./config/server.key
  27. fi