Backdrop 4 Good website.
git clone [email protected]:Backdrop4Good/backdrop4good.org.git
cd backdrop4good.org
- Add in a
settings.php
to theweb
directory. The file that points to the config (which is outside of theweb
directory).wget https://github.com/backdrop/backdrop/raw/1.x/settings.php
- Replace the config pointer lines with these:
$config_directories['active'] = '../config/active'; $config_directories['staging'] = '../config/staging';
lando start
- Get a database from Backup and Migrate and import it into your local. After
downloading the DB put in the same directory as your
.lando.yml
file (the project root). Then you can import the DB with:lando db-import <file.sql>
The bfg
theme is using sass
and gulp
to manage css.
To compile and watch the sass
files:
lando gulp
Drush is available from within the web
directory.
cd web
- Clear cache:
lando drush cc all
- Download a module
lando drush dl {module_name}
- Make config changes in the Backdrop UI on your local dev environment.
- Once complete export the configuration:
lando drush bcex
- Add and commit to git
- push up to github, pull down to server and then import the config
drush bcim