Electronic Literature as a Model of Creativity and Innovation in Practice (ELMCIP) is a collaborative research project funded by Humanities in the European Research Area (HERA) JRP for Creativity and Innovation built in Drupal
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
doc
drupal @ b684f8e
modules
private_files
site
themes/elmcip
.gitignore
.gitmodules
README.md
composer.json
composer.lock

README.md

ELMCIP documentation

Content

General usage

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

bin/site-drush uli

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

GIT

Basic usage

Get status of your local file system

git status

See differences

git diff

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

git commit

Push your changes to github

git push

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.

Troubleshooting

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

mysql.server restart

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