Skip to content

Easily setup a local dev environment for Dolibarr.

License

Notifications You must be signed in to change notification settings

vold-lu/dolidev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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