DEV Community 👩‍💻👨‍💻

Jain Wun
Jain Wun

Posted on

自己的hackmd自己架 - Codimd




他可以使用heroku, docker compose, k8s來架







如果在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的專案,然後把button和app.json裡面的連結改掉::
Enter fullscreen mode Exit fullscreen mode
"repository": "",
Enter fullscreen mode Exit fullscreen mode

如果成功create app但是有error

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 codimd@2.4.1 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
Enter fullscreen mode Exit fullscreen mode

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

"engines": {
    "node": "12.22.1"
Enter fullscreen mode Exit fullscreen mode

記得deploy裡面的github要和fork的repo link起來

Top comments (0)

👋 Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: