X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=Makefile;h=ef34915d2c68c1cd957662ac720f96bd9d99e38f;hp=5a05cc49f51f40cab4aa2870767e891d479ba9b4;hb=8f6a34b553a7ca9b7fc9c9cf5802ce418e3a5296;hpb=86dfd386746913dd29db7c03873bc68534f66b98 diff --git a/Makefile b/Makefile index 5a05cc49f..ef34915d2 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,8 @@ QUEUED_USER=fs_queue FREESIDE_PATH = `pwd` SELFSERVICE_USER = fs_selfservice +#never run on the same machine in production!!! +SELFSERVICE_MACHINES = localhost # SELFSERVICE_MACHINES = www.example.com # SELFSERVICE_MACHINES = web1.example.com web2.example.com @@ -182,6 +184,13 @@ install-selfservice: ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "sudo install -o freeside -d /usr/local/freeside" ;\ done +update-selfservice: + for MACHINE in ${SELFSERVICE_MACHINES}; do \ + rsync -rlptz fs_selfservice/FS-SelfService/ ${SELFSERVICE_INSTALL_USER}@$$MACHINE:FS-SelfService ;\ + ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; perl Makefile.PL && make" ;\ + ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; sudo make install" ;\ + done + install: install-perl-modules install-docs install-init install-rt deploy: install