Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

简单的静态页面 你们是怎么部署上线的? #1

Open
ly525 opened this issue Apr 2, 2020 · 1 comment
Open

简单的静态页面 你们是怎么部署上线的? #1

ly525 opened this issue Apr 2, 2020 · 1 comment

Comments

@ly525
Copy link
Member

ly525 commented Apr 2, 2020

先说下我们:

最开始的 写一个 sync.sh 发布

然后用python的fabric(因为一套代码要根据环境变量发布到不同机器上,比如国内国外)

然后用 改成了node 版本的fabric:flightplan

现在后端同学搭了个jenkins


最近有个业务需求,需要放到cdn,我这会正在看cdn的 node sdk,想写个webpack小插件,打包完成自动在 cdn 新建文件夹,然后再刷新cdn

参考资料:

  1. 大公司里怎样开发和部署前端代码?
    大公司里怎样开发和部署前端代码? fouber/blog#6

  2. 阿里云-云效

@ZHAISHENKING
Copy link

ZHAISHENKING commented Apr 3, 2020

我来说下我的情况,静态页Nginx都是配置好的,每次更新只要把服务器存放的页面替换就可以了。回滚的话本地git可以完成,所以我们的需求只有一个,就是开发完之后连接服务器替换文件。基于此,在编辑器上使用了Alibaba ToolKit 插件,配置好服务器连接,指定文件存放目录。像npm run dev一样,一键发布。当然这是小公司的做法,而且保证权限在你手里,行为也不太规范,只求能快速开发上线

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants