symfony - 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
解决方案
您不能在 AppEngine 上运行这些命令,您需要在部署和部署密钥之前运行它们。
文件系统是只读的,这意味着您不能创建任何文件(在 /tmp 之外),这反过来意味着除了在您正在部署的系统(例如您的计算机)上生成密钥之外别无他法。
推荐阅读
- javascript - 删除后无法输入文字
- docker - 在 Docker Swarm 中使用 Docker Stack 部署时将动态值传递给每个节点
- java - 尝试在空对象引用上调用虚拟方法“void android.database.sqlite.SQLiteDatabase.execSQL(java.lang.String)”
- ios - 领域 - 如何删除没有任何关联对象的对象?
- regex - 将一系列作业拆分为自命名的组
- c - 在一页中隔离一条指令
- openrefine - 使用 openrefine 对带有日期的记录进行分面排序
- vuejs2 - 当使用 Vuex getter 动态设置 prop 时,从 props 计算的 Vue 值未定义
- javascript - highchart 编辑器库事件监听
- python - 生物格式 python 模块