[英]GitLab CI using SCP
is a good idea to use SCP
to deploy application ?使用SCP
部署应用程序是个好主意吗? I have two machine , first one is Gitlab
Runner and second one is server where I deploy my application , when I update my app and want to deploy with ci/cd
is good idea to use SCP
or RSYNC
?我有两台机器,第一台是Gitlab
Runner,第二台是我部署应用程序的服务器,当我更新我的应用程序并想使用ci/cd
进行部署时,使用SCP
或RSYNC
是个好主意吗? for example , from runner's
machine SCP
project to server ....例如,从runner's
机器SCP
项目到服务器......
just to get this straight:只是为了弄清楚:
imho its perfectly fine to SCP it, at least you know the transport is encrypted.恕我直言,它对 SCP 来说完全没问题,至少你知道传输是加密的。 you can just run the scp in a script command, then run another script command to actually ssh into the box and start/deploy the app您可以只在脚本命令中运行 scp,然后运行另一个脚本命令以实际 ssh 进入框并启动/部署应用程序
however depending on your runtime, it might be better to use deployment tooling IF your app or app framework supports it.但是,根据您的运行时,如果您的应用程序或应用程序框架支持,最好使用部署工具。
=== the alternative could also be this: === 替代方案也可以是这样的:
publish the app to gitlab-ci's artifact repository in the gitlab registry.将应用程序发布到 gitlab 注册表中 gitlab-ci 的工件存储库。 (you might have to activate it for your project), then "pull" it on your server through means of your framework (您可能必须为您的项目激活它),然后通过您的框架将它“拉”到您的服务器上
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.