Version 70 (modified by 8 years ago) ( diff ) | ,
---|
Who we are?
http://gripuqam.org We are french speaking so this page will be translated unsing the advise in faq/translate/pages
Wiki page we read or collaborate to write @ mayfirst
- faq/translate/pages
- WikiFormatting
- http://trac.edgewall.org/wiki/TracSyntaxColoring
- Trac Syntax Coloring Example
{{{#!sh }}} {{{#!application/x-shellscript }}}
path$ echo "World" ; ls ; cd ; help # comment
path$ echo "World" ; ls ; cd ; help # comment
{{{#!json }}} {{{#!application/json }}}
{ "name": "drupal7", # comment forbidden in json "private": true # no coma here! }
{ "name": "drupal7", # comment forbidden in json "private": true # no coma here! }
- #!diff
- #!yml
- #!text/x-yaml
- #!application/x-yaml
- #!xml
- #!application/xml-dtd ...
- #!html Insert custom HTML in a wiki page.
- #!text/html The result will be syntax highlighted HTML code
- #!text/html+twig
- #!application/x-twig
- #!application/x-httpd-php5
- #!python
- #!php
- #!text/x-php
- #!text/css
- #!js
- #!text/javascript ...
- #!sql
- #!text/x-sql
- #!text/x-sqlite3-console
- #!text/x-postgresql-psql ...
- #!text/x-mysql
- #!text/x-diff
- #!text/x-trac-wiki
- #!application/x-sh-session No macro or processor named 'application/x-sh-session' found
- Trac Syntax Coloring Example
- http://trac.edgewall.org/wiki/TracSyntaxColoring
- TicketQuery Macro (tagging tickets) examples:
- There is somewhere a useful cloud of tags. faq/wordpress/WordPressInstall
- Tag for Debian packages
[DebianPackage:python-whoosh]
python-whoosh
Tickets we follow
Taged with GRIP-UQAM
Taged with python, tendenci, django, pyramid, php, drupal7, drupal, golang, fastcgi, chelsea, ossie
Results (1 - 10 of 1097)
Ticket | Modified | Resolution | Owner | Summary |
---|
Reported by us
No results
Drupal requirements
Taged with GRIP-UQAM with description
Results (1 of 21)
Ticket | Modified | Resolution | Owner | Summary |
---|
Development Tool
Pages we may need one day
Some PostgreSQL commands
- $ psql postgres --command="\l" # do see DB on server and parameters
- postgres:~$ createuser -D -R -S <UNIX user>
- postgres:~$ createdb -O <postgres user> <database name>
- $ pg_dump -Fc --verbose --file=<file name (.data)> <database name>
- $ pg_restore --verbose --no-owner --no-privileges --dbname=<database name> <file name (.data)> # restore the data base as a different user eg. to clone a Drupal website
Javascript: from npm to bower
- $ nice -n 127 ionice --class=idle npm install bower --save
- $ nice -n 127 ionice --class=idle npm update #update!
- or (like there is something to check here)
- $ nice -n 127 ionice --class=idle npm update bower #update!
- .bowerrc
- $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower init # to start a new empty bower.json
- Install some libraries...
- $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower update --production #update!
Example .bowerrc for Drupal 7
{ "directory" : "../../web/sites/all/libraries" }
Install Javascript libraries with Bower package manager
#$ nodejs node_modules/bower/bin/bower install --save "jquery#1.4.4" # Drupal 7 version # or (good idea (checked)) nodejs node_modules/bower/bin/bower install --save jquery#~1.4.4 # Drupal 7 version nodejs node_modules/bower/bin/bower install --save jquery-colorbox # depends on jquery nodejs node_modules/bower/bin/bower install --save ckeditor#full/stable
- https://github.com/npm/node-semver#ranges (valid for Bower)
- $ ls bower_components/
- or
- $ ls ../../web/sites/all/libraries
- https://packagist.org/packages/ckeditor/ckeditor
- Supported Editors Matrix https://www.drupal.org/node/596966
- jquery version for Drupal 7 https://www.drupal.org/node/171213
- same with jQuery Update module https://www.drupal.org/project/jquery_update
- https://packagist.org/packages/kraksoft/colorbox
- https://github.com/Spea/SpBowerBundle
Example bower.json for Drupal 7
{ "name": "drupal7", "private": true, "ignore": [ "**/.*", "node_modules", "bower_components", "../../web/sites/all/libraries", "test", "tests" ], "dependencies": { "jquery": "~1.4.4", "jquery-colorbox": "^1.6.3", "ckeditor": "#full/stable" } }
Example composer.json for Drupal 7
{ "require": { "drush/drush": "^8.0", "ezyang/htmlpurifier": "^4.7", "kraksoft/colorbox": "^1.5", "pelago/emogrifier": "^1.0", "tinymce/tinymce": "^3.5", # remove this line, this version is not available through composer! "ckeditor/ckeditor": "^full/4.5.1" } }
- http://docs.drush.org/en/master/install/
- https://packagist.org/packages/ezyang/htmlpurifier
- http://htmlpurifier.org/download
- https://packagist.org/packages/pelago/emogrifier
- https://www.drupal.org/project/emogrifier
- php composer target directory
Some Composer commands
- $ ./composer.phar self-update
- $ ./composer.phar update
Cron
- Consider output to an (even empty) file a good practice allowing to check last time the command has been executed. This is because some subtle errors may prevent execution of cron commands, eg. see #11534
... &> cron/results/<file>
- Consider nice and ionice to give priority to interactive tasks
nice -n 127 ionice --class=idle ...
Some Drush commands
- drush -v help
- drush -v status
- drush -v core-status
- drush -v status-report
- drush -v elysia-cron
- drush -v core-cron
- drush -v pm-refresh
- drush -v rf
- drush -v pm-download
- drush -v dl
- drush -v pm-updatecode
- drush -v upc
- drush -v pm-update
- drush -v up
- drush -v pm-list
- drush -v pml
- drush --status=enabled pm-list
- drush pm-info <admin_menu|...>
- drush pm-enable
- drush pm-disable
- drush -v updatedb
- drush -v updb
- drush libraries-list
- drush -v l10n-update-status
- drush -v cache-clear
- drush -v bam-sources
- use --uri="http://example.org" then sending mail for simplenews https://www.drupal.org/node/1776536
- nice...
Installing Drupal 7 or 8 with Composer (on a development server outside MayFirst)
$ composer create-project "drupal-composer/drupal-project" <directory>
- Composer in relation to Drush Make
- https://github.com/drupal-composer/drupal-project/tree/8.x
- https://packagist.org/packages/drupal-composer/drupal-project
- https://packagist.org/packages/drupal/core
- Composer preserve paths
Using symlinks to avoid duplication of code and save server memory
- locally clone repositories using git (see below:
git
for Drupal) - https://getcomposer.org/doc/05-repositories.md#path
- spot larger libraries (and the one used more often)
.../vendor$ du */* -sch | sort -h
.../vendor$ du */* -sc | sort -n
Installing Drupal 7 or 8 with Drush (on a development server outside MayFirst)
$ drush help site-install $ drush dl drupal-7 $ cd drupal-7.43/ $ drush site-install minimal --db-url=sqlite://sites/default/files/.ht.sqlite $ drush rs
git
for Drupal
$ git ls-remote --tags <repository> | sort --key=2 --version-sort | less $ git clone --branch <branch or tag> <repository> <directory>
- branch may evolve (devel) like 8.0.x
- tag are frozen, like stable releases as in 8.0.5
- directory may be
.../share/url/<URL>/<version>
or.../share/vendor/<vendor>/<package>/<version>
.../share/url$ git clone --branch 8.0.5 "https://git.drupal.org/project/drupal.git" git.drupal.org/project/drupal/8.0.5 .../share/url$ cd git.drupal.org/project/drupal/8.0.5 ; git branch -v * (aucune branche) d918ae1 Drupal 8.0.5
$ git ls-remote --tags https://github.com/drupal-composer/drupal-core | sort --key=2 --version-sort | less .../share/url$ git clone --branch 8.0.5 "https://github.com/drupal-composer/drupal-core" github.com/drupal-composer/drupal-core/8.0.5 .../share/url$ cd github.com/drupal-composer/drupal-core/8.0.5 ; git branch -v * (aucune branche) da4c151 Drupal 8.0.5
- https://www.drupal.org/project/drupal/git-instructions
- Creating a branch or tag in Git
- https://www.drupal.org/project/git_deploy
- 10.3 Git Internals - Git References
CKEditor for Drupal 7
Lets'use wysiwyg module
- Supported Editors Matrix https://www.drupal.org/node/596966
- $ drush dl --select wysiwyg
- $ drush dl wysiwyg-2.x-dev
- $ drush en wysiwyg
- $ drush status-report
- .../sites/all/libraries$ ln -s .../bower_components/ckeditor/ .
Does not work! Brobably because of symbolic links... better use .bowerrc to set target directory as suggested above.
http://cdn.ckeditor.com/4.5.4/full-all
Useful Debian Packages (Chelsea)
- apache2-mpm-worker(debian 8 jessie apache2 which uses mpm_event by default)
- apache2-suexec-custom (also debian 8 jessie apache2-suexec-pristine or debian 7 wheezy apache2-suexec)
- libapache2-mod-fcgid
- php5-cgi
- since february 2016 MayFirst uses mod_proxy_fcgi + php5-fpm
Note Altern-C
- Altern-C seems to use libapache2-mpm-itk(debian 7 wheezy apache2-mpm-itk)
To keep in mind
4875 id=4875 No results No results No results No results
drupal.org followup
PHP Libraries
Hybridauth
http://hybridauth.sourceforge.net/userguide.html
$ composer require hybridauth/hybridauth
Google::
- easy
- easy
OpenID::
- easy (no secret information needed)
- https://github.com/hybridauth/hybridauth/tree/master/additional-providers/hybridauth-yahoo-openid
- http://hybridauth.sourceforge.net/userguide/tuts/specific-provider-wrapper.html
- https://login.yahoo.com/
- a mobile phone number is required to register a new account
- yahoo Application consumer key
- Not clear if the domain root URL can be used as redirect URI
- Using the domain root URL as redirect URI results in an error at the time of clicking the icon on the registered web site
- It is not possible to register inside Microsoft developper website a redirect URI similar to the one used for Google, because some caracteres are not accepted.
- one could try to make a simpler redirection URI which would redirect to the one simililar to the one used for Google.
- microsoft oauth2 application id
- Getting Your Client ID for Web Authentication
- https://account.live.com
- Mes applications
- https://developers.facebook.com/apps needs a phone number (sound or text) or a credit card
Drupal Modules
Hybridauth
http://cgit.drupalcode.org/hybridauth/tree/README.txt?id=refs/heads;id2=7.x-2.x
Inside Drupal
Entities
Note:
See TracWiki
for help on using the wiki.