phpbb3.template.yml中的错误

我已按照迁移说明进行操作:

  • 将 app.yml 复制到 import.yml
  • 添加了 phpbb3 模板。
  • 停止了应用程序
  • 启动了重建导入应用程序

我收到了以下错误消息。

FAILED
--------------------
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/service/unicorn/run
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/replace_command.rb:11:in `read'
replace failed with the params {"tag"=>"precompile", "filename"=>"/etc/service/unicorn/run", "from"=>"# before precompile", "to"=>"PRECOMPILE_ON_BOOT=0"}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
c36434159c67d984490ca9d63ea1162a4a8124f39e8f6cf63328676622

我按照其他人列出的说明进行操作:

nano templates/import/phpbb3.template.yml

注释掉了以下行:

hooks:
  after_web_config:
    - exec:
        cd: /etc/service
        cmd:
          #- rm -R unicorn
          - rm -R nginx
          - rm -R cron

重建运行正常。将此与解决方案放在一个帖子中供他人参考。

请不要创建关于同一事物的多个帖子。我已将您其他带有回复的帖子移至此处,以便进行查看。

4 个赞