尝试从命令行恢复备份时出现“discourse: command not found”

这是否仍然有效,我遇到了这个错误 discourse: command not found

你好约翰 :slight_smile:

你是否在运行 discourse 命令之前运行了 ./launcher enter app

root@Canapin:~# cd /var/discourse/
root@Canapin:/var/discourse# ./launcher enter app
x86_64 arch detected.
root@Canapin-app:/var/www/discourse# discourse
Commands:
  discourse backup                            # Backup a discourse forum
  discourse disable_readonly                  # Disable the readonly mode
  discourse disable_restore                   # Forbid restore operations
  discourse enable_readonly                   # Enable the readonly mode
  discourse enable_restore                    # Allow restore operations
  discourse export                            # Backup a Discourse forum
  discourse export_categories                 # Export categories, all its to...
  discourse export_category                   # Export a category, all its to...
  discourse export_topics                     # Export topics and all users w...
  discourse help [COMMAND]                    # Describe available commands o...
  discourse import                            # Restore a Discourse backup
  discourse import_category                   # Import a category, its topics...
  discourse import_topics                     # Import topics and their users...
  discourse remap [--global,--regex] FROM TO  # Remap a string sequence acros...
  discourse request_refresh                   # Ask all clients to refresh th...
  discourse restore                           # Restore a Discourse backup
  discourse rollback                          # Rollback to the previous work...

4 个赞

这真的帮我解决了所有问题。

1 个赞

我现在有一个问题,我无法重建它……我该如何退出?以便能够运行 ./launcher rebuild app

我在上面的帖子中找到了解决方案,exit

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.