sheltermanager

Open full view…

ASM3 | Multiple websites on single server

ampien
Tue, 15 Oct 2019 12:18:44 GMT

Hi, all. I have an Ubuntu 18 LTS VM running our shelter's website and ASM. I want to know if anybody have been able to create both an ASM Test Server AND Production Server on the same tin. There is only a single /etc/asm3.conf file, so how would you go about creating a second instance? Also I'm running PHP7/Mariadb/Apache+WSGI setup. I did buy the Sheltermanager 3 Manual - but could not find it in there. Regards Ampie (South Africa)

robinrt
Tue, 15 Oct 2019 15:44:06 GMT

You can copy the install folder and have two installs. It's possible to put an asm3.conf file in each install folder. Then, run the two installs via mod_wsgi and give them a different location.

ampien
Thu, 17 Oct 2019 07:11:46 GMT

Thanks, Robin. I could do this without "installing" ASM. I cloned the git folder, and copied the contents of "install/deb/sheltermanager3/usr/lib/sheltermanager3" to "/usr/lib/asm/{site1,site2}". I then gave each "site" a different asm3.conf file in the root. I ensured that "python3 ./code.py 5000" starts on bootup, and bob's your uncle. :-) Tested and working.