Npm 如何将电报web发布到github页面
我一直在黑客,这是相当可怕的 它使用Npm 如何将电报web发布到github页面,npm,gulp,telegram,Npm,Gulp,Telegram,我一直在黑客,这是相当可怕的 它使用gulpwatch在本地运行,但现在我想将它部署到web上,就像Igor在他的gh页面中所做的那样简单: 虽然似乎有make脚本(自述文件中没有提到),但我不清楚该如何做。我尝试执行发布,但出现错误: [01:25:27] Finished 'add-appcache-manifest' after 85 ms echo -n "Please open http://localhost:8000/dist/index.html and check if eve
gulpwatch
在本地运行,但现在我想将它部署到web上,就像Igor在他的gh页面中所做的那样简单:
虽然似乎有make
脚本(自述文件中没有提到),但我不清楚该如何做。我尝试执行发布,但出现错误:
[01:25:27] Finished 'add-appcache-manifest' after 85 ms
echo -n "Please open http://localhost:8000/dist/index.html and check if everything works fine." && read -e
Please open http://localhost:8000/dist/index.html and check if everything works fine./bin/sh: 1: read: Illegal option -e
Makefile:10: recipe for target 'publish' failed
make: *** [publish] Error 2
以下是Makefile
的发布部分:
publish:
./node_modules/gulp/bin/gulp.js clean
cd dist && git pull origin gh-pages
./node_modules/gulp/bin/gulp.js publish
echo -n "Please open http://localhost:8000/dist/index.html and check if everything works fine." && read -e
cd dist && git add --all . && git commit -am "merged with master" && git push origin gh-pages
我做的事情是否有误(比如遵循部署静态节点应用程序的基本步骤)或者有其他错误吗?由于缺乏更好的解决方案,我发布了我所做的攻击:
我把电话线拔掉了
echo -n "Please open http://localhost:8000/dist/index.html and check if everything works fine." && read -e
从我的Makefile
运行makepublish
,一切正常
如果您是第一次这样做,您可能需要在您的远程原点设置分支gh页面
:
git clone -b gh-pages git@github.com:zhukov/webogram.git dist
git remote set-url origin <your git url>
git克隆-bgh页面git@github.com:zhukov/webgram.git dist
git远程设置url源
这将把分支gh页面
克隆到目录dist
中,并将原点设置为正确的URL,以便您可以成功地推送更改
如果您分叉了Igor的回购协议,则不需要这样做,因为您的原始
将已经包含分支gh页面