自己的hackmd自己架 - Codimd

3309 단어 codimdheroku
patreon觀看


Codimd는 hackmd에 대해 자세히 설명하지 않습니다.

但並沒有提供像是hackmd的團隊管理系統

他可以 사용 heroku, docker compose, k8s來架

헤로쿠



這是裡面最簡單的架設方式,點一下heroku的按鈕就好

https://heroku.com/deploy?template=https://github.com/hackmdio/codimd/tree/master



구성



會有一些環境變數可以設定,當然也可以deploy完後再去修改



https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-configuration



::heroku의 DB 사용 플러그인, 사용하지 않는 CMD_DB_URL::


如果在create app時有遇到錯誤



Item could not be created:

We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.



::fork codimd의 코드, 전원 버튼 및 app.json裡面的連結改掉::

https://heroku.com/deploy?template=https://github.com/username/codimd/tree/master



{
"repository": "https://github.com/username/codimd",
}


如果成功create app但是有오류




2022-03-23T13:45:56.526766+00:00 app[web.1]: npm ERR! 
2022-03-23T13:45:56.526878+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2022-03-23T13:45:56.527016+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2022-03-23T13:45:56.530491+00:00 app[web.1]: 
2022-03-23T13:45:56.530721+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2022-03-23T13:45:56.530822+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2022-03-23T13_45_56_527Z-debug.log
2022-03-23T13:45:56.725946+00:00 heroku[web.1]: Process exited with status 1
2022-03-23T13:45:56.816721+00:00 heroku[web.1]: State changed from starting to crashed


一樣得fork repo,然後去 package.json改node版本

{
"engines": {
    "node": "12.22.1"
  },
}


記得deploy 면의 github 및 포크의 repo 링크

좋은 웹페이지 즐겨찾기