Show Menu
Cheatography

Drucker cheatsheet

Getting started

# Clone the app
$ git clone <url of the project>
$ cd <name of the project>
# Initialize the Drucker Git submodule
$ git submodule init
$ git submodule update
# Install all the dependencies
$ cd drucker
$ source load-env
$ drucker install
# Run the stack
$ drucker start
 

Drucker commands

drucker init
Fresh install of Drupal
drucker install
Install all deps
drucker start|stop
Start/Stop the stack
drucker logs|dblog
Show the logs
drucker sql-backup
Backup the SQL DB
drucker sql-re­store
Restore a SQL backup
drush
Launch Drush
composer
Launch Composer
node, npm, yarn, gulp
Launch Node & utilities
 

Config workflow

For a successful config workflow, follow this:
1.
drush cex
: export your config
2. commit your changes
3. pull/merge from the remote
4.
drush cim
: import the brand new config
5. push

Commit convention

feat
A new feature
fix
A bug fix
docs
Docume­ntation only changes
style
Changes that do not affect the meaning of the code (white­-space, format­ting, missing semi-c­olons, etc)
refactor
A code change that neither fixes a bug nor adds a feature
perf
A code change that improves perfor­mance
test
Adding missing tests or correcting existing tests
build
Changes that affect the build system or external depend­encies
ci
Changes to our CI config­uration files and scripts
chore
Other changes that don't modify src or test files
revert
Reverts a previous commit
<ty­pe>­(<s­cop­e>): <su­bje­ct>
<BLANK LINE>
<bo­dy>
<BLANK LINE>
<fo­ote­r>

More infos.: https:­//g­ist.gi­thu­b.c­om/­ste­phe­npa­ris­h/9­941­e89­d80­e2b­c58a153
       
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Modules and Themes Listed in Drupal User's Guide Cheat Sheet
          Drupal 6 Theme Variables Cheat Sheet
          drush commands Cheat Sheet