问题标签 [hackmd]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1129 浏览

node.js - pm2 无法访问网页

我正在尝试使用 pm2 在我的笔记本电脑上运行 HackMD ( https://github.com/hackmdio/hackmd ) 项目。

我可以使用命令看到状态在线,pm2 show 0但我无法使用带有 URL 的浏览器打开页面http://localhost:3306- 它显示“无法访问此站点”。

有谁知道出了什么问题?

配置.json:

在此处输入图像描述

0 投票
0 回答
170 浏览

node.js - Herokuapp - Google Oauth - Hackmd/Codimd

Description

I am using Hackmd on a heroku container since 1-2 year with google oauth. No Problems - Google Oauth worked before. Today was my first access since 3 weeks but then suddenly on login orcurred "Internal Server Error" Before the weeks it worked perfectly fine. There weren't any changes in that time. Does anybody know something about that or even a fix or workaround?

Stacktrace

2019-10-28T15:58:02.257474+00:00 app[web.1]: Error 2019-10-28T15:58:02.257484+00:00 app[web.1]: at /app/node_modules/passport-google-oauth20/lib/strategy.js:95:21 2019-10-28T15:58:02.257486+00:00 app[web.1]: at passBackControl (/app/node_modules/oauth/lib/oauth2.js:132:9) 2019-10-28T15:58:02.257488+00:00 app[web.1]: at IncomingMessage.<anonymous> (/app/node_modules/oauth/lib/oauth2.js:157:7) 2019-10-28T15:58:02.257489+00:00 app[web.1]: at emitNone (events.js:110:20) 2019-10-28T15:58:02.257491+00:00 app[web.1]: at IncomingMessage.emit (events.js:207:7) 2019-10-28T15:58:02.257492+00:00 app[web.1]: at endReadableNT (_stream_readable.js:1059:12) 2019-10-28T15:58:02.257494+00:00 app[web.1]: at _combinedTickCallback (internal/process/next_tick.js:138:11) 2019-10-28T15:58:02.257495+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:180:9) 2019-10-28T15:58:02.261785+00:00 app[web.1]: 2019-10-28T15:58:02.261Z - info: ::ffff:10.196.48.88 - - [28/Oct/2019:15:58:02 +0000] "GET /auth/google/callback?code=xxxxxxxxxxxxx&scope=profile+https://www.googleapis.com/auth/userinfo.profile HTTP/1.1" 500 148 "http://domain.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36"

(I changed the code value and domain)

Software

  • Hackmd Doopio
  • Heroku Stack heroku-16
0 投票
1 回答
166 浏览

linked-list - Graphviz 改变边缘方向

我使用graphvizhackmd绘制这样的图表 在此处输入图像描述

我的代码是:

我想node0和间接在同一级别。然而,当我改变

他们将有错误消息:"Error: lost indirect node0 edge" 我想要的实际图表:

在此处输入图像描述

0 投票
1 回答
32 浏览

yaml - 为什么使用 Yaml 将 disqus 添加到我的 hackmd 页面不起作用?

Disqus 短名称在 hackmd 上不起作用

我已按照指示将 yaml 插入我的 hackmd 页面顶部,该页面向公众开放

编码:

但是,留言板只是没有显示。