By admin, 22 一月, 2021

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以方便调用。

参考:https://docs.drush.org/en/7.x/install/

标签

By admin, 5 一月, 2021

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文件里添加下面逻辑:

By admin, 28 十二月, 2020

 

UPDATE users_field_data SET pass='从一个已知密码的站点里复制uid=1的这个值' WHERE uid = 1;

DELETE FROM cache_entity WHERE cid = 'values:user:1';

标签

By admin, 24 十二月, 2020

过一段时间没有使用,我们应该brew update更新。

遇到问题,可以运行brew doctor检测。

brew update 或 install可能都很慢,可以在后面加--verbose --debug看更多信息,了解进度。

By admin, 21 十二月, 2020

(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