2

我的 .emacs 中的相关代码是:

(require 'ox-publish)
(require 'ox-html)
(setq org-publish-project-alist
  '(("org-html"
     :base-directory "~/org/"
     :base-extension "org"
     :publishing-directory "/ssh:user@server:/public_html/"
     :recursive t
     :publishing-function org-html-publish-to-html
     :table-of-contents: nil
     :auto-postamble nil
     )

    ("org-static"
     :base-directory "~/org/"
     :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
     :publishing-directory "/ssh:user@server:/public_html/"
     :recursive t
     :publishing-function org-publish-attachment
     )
   ("org" :components ("org-html" "org-static"))
   )
  )

我收到一条错误消息,其中包含以下内容:

byte-code: Couldn't find exit status of `test -e /public_html/'

如果我发布到本地计算机上的目录并且它工作了一分钟但随后停止,它会很好地导出。有什么线索吗?

4

1 回答 1

0

由于您的 ssh: 远程文件位置规范,我的印象是问题来自 Tramp。

也许首先尝试对远程目录使用 Tramp,并检查一切是否正常。

于 2013-05-11T07:41:00.573 回答