http://gz.bendibao.com/gzsi/2010423/si42131.shtml
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
composer config secure-http false // 不确定是否需要
参考:
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';
最新评论