vold-lu / dolidev

Easily setup a local dev environment for Dolibarr.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dolidev

Easily setup a local dev environment for Dolibarr

How to use it?

Easy-peasy:

git clone https://github.com/vold-lu/dolidev.git
cd dolidev

./dolidev up --seed # Spawn a Dolibarr instance and optionally seed the database
./dolidev down # Stop the Dolibarr instance
./dolidev down --rm # Remove the Dolibarr instance (wipe files on disk)

On MacOs

Since Apple is BSD based some things are failing.

Therefore MacOs users will need to install gnu-{getopt,sed} using brew and then change the .env to point to the location:

brew install gnu-getopt gnu-sed
echo "GETOPT_CMD=$(brew --prefix gnu-getopt)/bin/getopt" >> .env
echo "SED_CMD=gsed" >> .env

How to configure it?

You can customize the version and the instance of Dolibarr to be deployed like this:

echo "DOLIBARR_URL=https://github.com/vold-lu/dolibarr" >> .env
echo "DOLIBARR_VERSION=17.0" >> .env

About

Easily setup a local dev environment for Dolibarr.

License:GNU General Public License v3.0


Languages

Language:Shell 81.2%Language:Dockerfile 18.8%