简体   繁体   English

本地 windows - 服务器 Ubuntu、git 推直播无腻子

[英]Local windows - Server Ubuntu, git push live no putty

I've a django app, i'd like to set-up with git remote with git push live command pushing onto AWS EC2 all methods mentioned use putty which isn't able to config it我有一个 django 应用程序,我想使用 git 远程设置 git 远程git push live命令推送到 AWS EC2 所有提到的方法都使用无法配置的腻子

I've set up a bare repository with edits( https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa ) done to using this as a reference我已经建立了一个带有编辑的裸存储库( https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa )作为参考

all works fine until I need to hit一切正常,直到我需要打

$ git remote add production demo@yourserver.com:project.git

this line, as ssh was through putty, I faced issues here这条线,因为 ssh 是通过腻子,我在这里遇到了问题

Git post hook windows 10 - Linux system Git 后挂钩 windows 10 - Linux 系统

After setting up the bare repository and configuring it for posthooks在设置裸存储库并将其配置为 posthook 之后

Everything from here would be done in the local machine

Check-in Windows Manage Optional features签入 Windows Manage Optional features

Install and activate - OpenSSH Client & OpenSSH Server安装和激活 - OpenSSH 客户端和 OpenSSH 服务器

Create a new config file in.ssh directory which would be located in {user}/.ssh在.ssh 目录中创建一个新的配置文件,该目录将位于 {user}/.ssh

Host foobar
  HostName {HostName of EC2 instance}
  Port 22
  User {user}
  IdentityFile {.pem file location}

after this go to the project directory and在此 go 之后到项目目录和

git remote add live foobar:{barerepositoryname}.git

and done!并做了!

try - git push live now试试 - git push live

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

相关问题 无法使用Git Push Heroku Master推送本地更改 - Unable to push local changes live using Git Push Heroku Master VPS Git服务器中的Git推送错误(本地到远程)? - Git Push Error ( Local to Remote ) in VPS Git Server? 我可以忽略整个分支来创建一个与实时服务器连接的本地分支,并将调试设置为True吗? - Can I git ignore an entire branch to create a local branch that interfaces with live server, with debug set to True.? 无法从其他Windows计算机访问本地ubuntu服务器上的Django服务器 - Django server on local ubuntu server cannot be reached from another windows machine 访问本地网络中ubuntu服务器上托管的网页 - Visit webpage hosted on ubuntu server in a local network git push时不将项目传输到服务器 - Not transferring project to server when git push git push django应用程序到linux虚拟服务器 - git push django app to linux virtual server 将网站从本地服务器迁移到托管服务器的步骤(上线) - steps to take website from local server to hosted server (going live) 从 Windows 访问 VM 中的 Ubuntu django 服务器 - Access Ubuntu django server in VM from Windows 我可以在本地服务器和 Ubuntu 服务器上运行 Django 应用程序吗? - Can I run Django application in both local server and Ubuntu server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM