简体   繁体   English

有没有用于将nodejs app上传到myown linux服务器的linux脚本? 喜欢appfog或heroku

[英]Is there any linux scripts to for uploading nodejs app to myown linux server? Like appfog or heroku

Is there any linux scripts to for uploading nodejs app to myown linux server? 有没有用于将nodejs app上传到myown linux服务器的linux脚本? Like appfog or heroku. 喜欢appfog或heroku。 I have dedicated linux server and working on linux too. 我有专门的linux服务器,也在linux上工作。

I want upload my nodejs application to server and restart nodejs with one shell command. 我想将我的nodejs应用程序上传到服务器并使用一个shell命令重新启动nodejs。 I can write script, but maybe don't need to invent bycicle? 我可以编写脚本,但也许不需要发明脚本?

Popular choices using SSH: 使用SSH的热门选择:

For serious stuff you really should look at configuration management and server provisioning applications like (in no particular order): 对于严肃的东西,你真的应该看看配置管理和服务器配置应用程序(无特定顺序):

Most revision control systems allows for "after/before-commit" hooks; 大多数修订控制系统允许“after / before-commit”挂钩; sometimes I use these hooks to run tests before and automatically deploy to the acceptance environment after commits. 有时我会使用这些钩子来运行测试,并在提交后自动部署到接受环境。

See also Jenkins CI (Continuous Integration is a hot topic ). 另请参阅Jenkins CI (持续集成是一个热门话题 )。

I use fleet from substack to manage deployment. 我使用来自substack的fleet来管理部署。 Fleet is a git-based tool that allows you to deploy code and manage your node processes running on remote servers. Fleet是一个基于git的工具,允许您部署代码并管理在远程服务器上运行的节点进程。

Adding in seaport and either bouncy or node-http-proxy is a great way to build an application that is made up of lots of small components that work together. 添加seaportbouncynode-http-proxy是构建由大量小组件协同工作的应用程序的好方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM