It is important to have a local development environment that works for you. Having a reliable development environment will keep you up and running. It is your pen, your hammer, your sword. Some options are available below, feel free to choose the one that works for you. All of them require git
command line installed.
Table of Contents |
---|
KalaBox
- Install KalaBox
- Alternatively, to build from source, download KalaBox:
git clone git@github.com:kalabox/kalabox.git ~/.kalabox
cd ~/.kalabox
- Build KalaBox
# Builds for OSX
make osx
# Builds for Windows
make windows
# Builds for .deb/.rpm
make linux
- Install KalaBox by double clicking the installer in the `dist` directory
- Alternatively, to build from source, download KalaBox:
- Create your development environment
mkdir -p ~/Sites
cd ~/Sites
kbox create drupal7 -- --name="MySite"
- Set up the site
- cd ~/Sites/mysite
- `kalabox-compose.yml:appserver:port` can become `"8000:80"` to have the site serve at `http://localhost:8000`
- Execute `kbox services` to see the database settings
- The `code` directory is your application code. Switch this out with your project's code base:
rm -rf code
git clone git@github.com:kalamuna/MYSITE.git code
- Import the database from Pantheon
- Visit the Pantheon Dashboard
- Download a database backup from Pantheon
- Import the database to KalaBox
gunzip -c mysql-backup.sql.gz | kbox drush sql-cli --database=database
TODO: Update this to sql-sync
- Run the site
kbox start
- Load the site up in your browser: http://localhost:8000 or the URL KalaBox provides.
DrupalVM
- Install Vagrant
- Install VirtualBox 4
- Check out DrupalVM
git clone git@github.com:geerlingguy/drupal-vm.git ~/.drupalvm
cd ~/.drupalvm
- Update the configuration
- Copy example.drupal.make.yml to drupal.make.yml
- Copy example.config.yml to config.yml
- Change configuration in config.yml
- Create your site
mkdir -p ~/Sites/mysite
- Update ~/.drupalvm/config.yml to point local_path to ~/Sites/mysite
- Run the site
cd ~/.drupalvm
vagrant up
- Import the Database from Pantheon
- Visit the Pantheon Dashboard
- Download a database backup from Pantheon
- Import it
gunzip -c mysql-backup.sql.gz | drush @drupalvm.drupalvm.dev sql-cli
- TODO: Update this to sql-sync
- Load the site at http://drupalvm.dev/ if you didn't configure the port in config.yml.
...
Lando
Visit the official documentation for installation instructions.
DDEV
Visit the official documentation for installation instructions.