sudo apt install composer
对于Drupal7,运行composer global require drush/drush:7.x,drush会被安装到~/.config/composer/vendor/bin/drush
对于Drupal9,在Drupal9目录下运行composer require drush/drush,drush会被安装到vendor/bin/drush
安装完后创建一个符号链接到/usr/local/bin/drush以方便调用。
sudo apt install composer
对于Drupal7,运行composer global require drush/drush:7.x,drush会被安装到~/.config/composer/vendor/bin/drush
对于Drupal9,在Drupal9目录下运行composer require drush/drush,drush会被安装到vendor/bin/drush
安装完后创建一个符号链接到/usr/local/bin/drush以方便调用。
可以开机启动,异常退出时能自动重启。
dpkg-reconfigure tzdata
iframe里的cookie需要设置SameSite=None,详细原因解释见:https://medium.com/trabe/cookies-and-iframes-f7cca58b3b9e
另外查到,Same origin需要有相同的协议(http或https),SameSite则不需要。
Nginx 1.19.3可以用proxy_cookie_flags的办法解决cookie问题,参考:
https://serverfault.com/questions/1010706/setup-samesite-none-value-in-nginx-webserver
Drupal 7方案(https),在settings.php文件里添加下面逻辑:
完成了模块的英文到中文的翻译。由于Drupal翻译审核响应会很慢(可能几年都没人审核),目前只能手动导出,然后放到files/translations下。
UPDATE users_field_data SET pass='从一个已知密码的站点里复制uid=1的这个值' WHERE uid = 1;
DELETE FROM cache_entity WHERE cid = 'values:user:1';
过一段时间没有使用,我们应该brew update更新。
遇到问题,可以运行brew doctor检测。
brew update 或 install可能都很慢,可以在后面加--verbose --debug看更多信息,了解进度。
(I assume you have already installed HomeBrew.)
1. Download source code
2. run ./confugre
$ ./configure
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
espeak-ng links are point to /usr/share,but home brew install those files in /usr/local/share。So we need to fix the link paths.
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/ltversion.m4
最新评论