serveur de hook HTTP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 686B

12345678910111213141516171819
  1. DESTDIR=./
  2. INSTALL_LOCATION=$(DESTDIR)/opt/marang
  3. build:
  4. npm install --production
  5. install:
  6. mkdir -p $(INSTALL_LOCATION)
  7. cp -r handlers $(INSTALL_LOCATION)/
  8. cp -r bin $(INSTALL_LOCATION)/
  9. cp -r client $(INSTALL_LOCATION)/
  10. cp -r lib $(INSTALL_LOCATION)/
  11. cp -r node_modules $(INSTALL_LOCATION)/
  12. cp package.json $(INSTALL_LOCATION)/
  13. cp package-lock.json $(INSTALL_LOCATION)/
  14. cp app.js $(INSTALL_LOCATION)/
  15. # Create default configuration file
  16. mkdir -p $(DESTDIR)/etc
  17. node -e "var defaultConfig = require('./lib/config'); var config = {webApp: defaultConfig.webApp, hookServer: defaultConfig.hookServer}; console.log(JSON.stringify(config, null, 2))" > $(DESTDIR)/etc/marangrc