GIST is an open-source application to share code. https://gist.deblan.org
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

60 rader
1.1 KiB

  1. COMPOSER ?= composer
  2. NPM ?= npm
  3. GIT ?= git
  4. MKDIR ?= mkdir
  5. PHP ?= php
  6. RM ?= rm
  7. all: update clean-cache
  8. composer:
  9. @echo "Installing PHP dependencies"
  10. @echo "---------------------------"
  11. @echo
  12. ${COMPOSER} install
  13. npm:
  14. @echo "Installing CSS/JS dependencies"
  15. @echo "------------------------------"
  16. @echo
  17. ${NPM} install
  18. ${NPM} update
  19. update:
  20. @echo "Updating application's dependencies"
  21. @echo "-----------------------------------"
  22. @echo
  23. ${GIT} pull origin master
  24. ${MKDIR} -p data/git
  25. ${MKDIR} -p data/cache
  26. ${COMPOSER} update
  27. ${NPM} install
  28. ${NPM} update
  29. clean-cache:
  30. @echo "Removing cache"
  31. @echo "--------------"
  32. @echo
  33. ${RM} -fr cache/*
  34. run:
  35. @echo "Run development server"
  36. @echo "----------------------"
  37. @echo
  38. ${PHP} -S 127.0.0.1:8080 -t web
  39. propel:
  40. @echo "Propel migration"
  41. @echo "----------------"
  42. @echo
  43. ./vendor/propel/propel/bin/propel config:convert
  44. ./vendor/propel/propel/bin/propel model:build --recursive
  45. ./vendor/propel/propel/bin/propel migration:diff --recursive
  46. ./vendor/propel/propel/bin/propel migration:migrate --recursive