Durham Civil Rights Map, a project of the Pauli Murray Project.
- Install Docksal (https://docksal.io/)
- Verify you have access to the Pantheon project.
- Clone this repo to your workspace.
- Create a
.docksal/docksal-local.env
file with the following line:SECRET_TERMINUS_TOKEN="my-super-secret-token"
- Run
fin init
- Currently, the files aren't pulling correctly from Pantheon, and I haven't diagnosed it yet, so you will need to download
a backed up copyof the site files directory and copy it into
sites/default/files
.
- Clone the repo locally and set up your vhosts file to point to path/to/repo with whatever URL.
- Create a blank PHP file in
docroot/sites/default/settings.local.php
and add the proper code to specify your local DB config - Making sure you're using drush 8.x (http://docs.drush.org/en/master/install/), run
drush sql-create
. - Download the DB from the dev site (ssh in,
drush sql-dump --gzip --result-file
), and install it locally. - Run
drush config-import
to make sure that config is synced
From the theme directory (themes/mappy
), run bundle exec compass compile
to compile the Sass files into styles.css
.
You'll need to commit the styles.css
file since Pantheon doesn't support running compass compile
.
- Use the Pantheon UI or
terminus
(the Pantheon CLI) to obtain the latest DB fromlive
. - After importing the DB, run
drush config-export
. You should not see any changes. If you do, you should commit them and push them back tomaster
. - {local development on whatever feature you're working on}
- Run
drush config-export
. If you've made any changes to any configuration, you should see some YAML files. Make sure you commit those as part of your pull request.
- Push your branch to
dev
on Pantheon, then totest
and finally tolive
. - Once your code is in
live
, from your local machine, runterminus drush config-import --site=durham-civil-rights-map --env=dev
(orenv=test
orenv=live
) — this imports your file-based configuration to the database. Don't skip this step!