FreshPorts / freshports

The website part of FreshPorts
http://www.freshports.org/
BSD 2-Clause "Simplified" License
69 stars 24 forks source link

multiple instances of FreshPorts per FreeBSD host #140

Open dlangille opened 4 years ago

dlangille commented 4 years ago

I recently set up multiple instances of the FreshPorts UI on a single host. These are some notes:

USER=dan

Steps for configuring a FreshPorts instance post 'git clone'

# e.g. /usr/local/etc/m.freshports.org
ETCDIR="/usr/local/etc/INSTANCENAME"

# e.g. /usr/home/$USER/public_html/
BASEDIR="dir where you did the git clone"

# first, the include directory
cd ${BASEDIR}/freshports/include

# common.php
sudo cp -ia common.php.sample ${ETCDIR}/common.php
sudo ln -sf ${ETCDIR}/common.php .

# constants.local.php
sudo cp -ia constants.local.php.sample ${ETCDIR}constants.local.php
sudo ln -sf ${ETCDIR}/constants.local.php .

# next, the configuration directory
cd ${BASEDIR}/freshports/configuration

sudo cp -na virtualhost-common-ssl.conf.sample ${ETCDIR}/virtualhost-common-ssl.conf
sudo ln -sf ${ETCDIR}/virtualhost-common-ssl.conf .

sudo cp -na robots.txt.sample ${ETCDIR}/robots.txt
sudo ln -sf ${ETCDIR}/robots.txt .

sudo cp -na freshports.conf.php.sample ${ETCDIR}/freshports.conf.php
sudo ln -sf ${ETCDIR}/freshports.conf.php .

sudo cp -na database.php.sample ${ETCDIR}/database.php
sudo ln -sf ${ETCDIR}/database.php .
dlangille commented 4 years ago

It would be nice to have a fully automated deploy of a dev environment.

dlangille commented 1 year ago

Usually I just do this with jails.