首页 > 解决方案 > Symfony 部署谷歌云

问题描述

我正在将 symfony 应用程序部署到谷歌云,我做了这个(https://cloud.google.com/community/tutorials/run-symfony-on-appengine-standard)教程,一切正常。

我正在使用 LexikJWTAuthenticationBundle 进行身份验证,但无法生成 ssh 密钥。

我如何在谷歌云上运行这个命令

openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout

标签: symfonygoogle-app-enginegoogle-cloud-platformlexikjwtauthbundle

解决方案


您不能在 AppEngine 上运行这些命令,您需要在部署和部署密钥之前运行它们。

文件系统是只读的,这意味着您不能创建任何文件(在 /tmp 之外),这反过来意味着除了在您正在部署的系统(例如您的计算机)上生成密钥之外别无他法。


推荐阅读