- Reset and upgrade local installation
- How to work with the features module
- Test and verify an issue
- Contribute changes and improvements
- How to create a release
- How to deploy a release
- Old user guide
ELMCIP Drupal configuration is controlled in multiple Features modules. Other changes, example housekeeping tasks are run in code by hook_update_N(). Need to learn more about Features, have a look at the provided Features documentation.
Log in as user 1 (site admin) without password
Logs into to dev site as user 1 (site administrator).
Turn on development settings module.
This enable field, views userinterface and disable all caching and much more.
bin/site-drush en development_settings
Get status of your local file system
Add files to be comitted (staging).
git add <filename> <filname xx>
If your commit has many files you could use the name of the directory they live in.
git add <directory name>
Commit changes you have staged for commit
Push your changes to github
Best practise in git
- Commit often.
- Commit should always contain working code. Do not commit and push half baked code. That might break test and beta.elmcip.net installation and will get reverted from the repository.
- Write informative commit messages. Write why you did the changes, not what you just changed, Git will tell us that.
- Remember to push your changes.
Problems importing database
If you are unable to restore (import) the full database, your mysql/mariadb resource settings my be to low. Try upping this to:
max_allowed_packet = 100M
in your my.cnf or server.cnf ? WHERE DO I FIND THIS ? and restart the db. server
NOTE: NEED EXACT COMMANDS FOR THE ABOVE
Problems changing Drupal permissions
Problems getting changing permissions on '/admin/people/permissions'? Check your apache/php-error log. You might then see warnings like:
PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://elmcip.dev/admin/people/permissions
To fix it, track down your php.ini (/usr/local/etc/php/5.5/php.ini or 5.4) and search for this line. Uncomment the max_input_vars line and alter it to:
; How many GET/POST/COOKIE input variables may be accepted max_input_vars = 2000