简体   繁体   English

如何使用Windows 10在Linux机器上的远程文件上工作?

[英]How to work on a remote file on a linux machine using Windows 10?

This seems like a strange question at first, but I'd really like to know how other people do it: I'm currently creating a node.js application that runs on a Debian server in the internet. 起初这似乎是一个奇怪的问题,但是我真的很想知道其他人是如何做到的:我当前正在创建一个可以在Internet上的Debian服务器上运行的node.js应用程序。

My dev machine is (unfortunately) a Windows 10 Pro system. 我的开发机是(不幸的)Windows 10 Pro系统。 Now, whenever I tweak a file that I edited locally, I need to re-upload it via SCP or FTP, which is extremely uncomfortable. 现在,每当我调整本地编辑的文件时,都需要通过SCP或FTP重新上传它,这非常不舒服。 Usually, I'd simply mount the remote file system into my dev machine's filesystem and work directly on the files. 通常,我只是将远程文件系统挂载到开发机的文件系统中,然后直接在文件上工作。

Of course, I can also just work on the remote system via ssh in a console, but that has other disadvantages for me. 当然,我也可以通过控制台中的ssh在远程系统上工作,但这对我来说还有其他缺点。

I'm looking for the best workflow. 我正在寻找最佳的工作流程。 What is yours? 你是什​​么人

Workflow using version control system: 使用版本控制系统的工作流程:

1.) You can make a private repo on Github(private repo is paid) or Bitbucket(private repo is free) of your project. 1.)您可以在项目的Github(付费私人回购)或Bitbucket(免费私人回购)上进行私有回购。

2.) Update the code repository from your windows system. 2.)从Windows系统更新代码存储库。

3.) Copy the repo on the debian server from bitbucket/github and pull the changes everytime you update repository from local system. 3.)每次从本地系统更新存储库时,从bitbucket / github复制debian服务器上的仓库,并提取更改。

Here is bitbucket tutorial link for getting started 这是Bitbucket 入门教程链接

This will take time because you will have to learn Git. 这将花费一些时间,因为您必须学习Git。 Link to tutorials: 链接到教程:

Atlassian Tutorial Link Atlassian教程链接

我在WinSshFs上取得了相当不错的经验,您可以在其中通过SSH将目录挂载到本地文件系统中。

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

相关问题 env: node: 没有这样的文件或目录(使用 jenkings、windows 机器、node 和远程 Web 界面) - env: node: No such file or directory (using jenkings, windows machine, node and a remote web interface) 如何使用 Node.js 连接到 windows 机器中的远程 SQL 服务器 - How to connect to remote SQL Server present in a windows machine using Node.js 如何在Windows 10计算机上启动其他Node.js文件后启动新的Node.js文件? - How to initiate a new Node.js file after already initiating some other Node.js file on Windows 10 machine? 如何在Windows机器上安装和运行redis-server(具体为10)? - How to install and run redis-server on windows machine(10 to be specific)? 如何从另一个Web应用程序在远程计算机上执行bat文件 - How to execute a bat file on remote machine from another web app 如何制作Windows 10安装文件 - How to make a windows 10 install file Windows 10 和 Linux 的 Windows 子系统上的 NodeJS - NodeJS on Windows 10 and Windows Subsystem for Linux MongoDB拒绝Windows 10计算机上的连接 - MongoDB refuses Connection on Windows 10 machine 在Windows 10计算机上安装节点模块时出现问题 - Issues installing node modules on Windows 10 machine 要将缓冲的zip文件内容复制到远程计算机 - To copy the buffered zip file contents to remote machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM