setup.sh 442 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. sed -i 's|host=.* port=5432|host='"${DBHOST}"' port=5432|g' model_postgre.nim
  3. export PATH=$NIMROD_HOME/bin:$NAWAK_HOME/bin:$ZEROMQ_HOME/include:$NAWAK_PATH:$PATH
  4. nim c --threads:on -d:release -d:postgre_model --path:$NAWAK_PATH -o:nawak_postgre app.nim
  5. cd conf
  6. mkdir -p run logs tmp
  7. m2sh load -config mongrel2.conf
  8. m2sh start -name test
  9. cd ..
  10. nb_workers=256
  11. if [ "$TRAVIS" == "1" ]; then
  12. nb_workers=32
  13. if
  14. ./nawak_postgre &