Open dlangille opened 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 .
It would be nice to have a fully automated deploy of a dev environment.
Usually I just do this with jails.
I recently set up multiple instances of the FreshPorts UI on a single host. These are some notes: