Remote project with docker + VCS from Github

Hello,
I have project (it uses docker) locally, but want to move some env on my VPS. Everything is configured on VPS and works fine, the question is, how should I can configure project locally?

I created new project, select option to use remote files (with downloading) and deployments - files have been downladed, I also enabled option to auto-upload on saving, it's ok.

But... 

  1. Project on VPS uses two VCS (Github) - how can I now link project directories to these VCS and then control them? I would like to control files on VPS using IDE: i.e. I change branch locally -> it will also change it on remote server (and then rebuild using watchers etc. watchers run in background). Is it possible?
  2. Should I download all files i.e. "vendor" for PHP and "node_modules" for node packages? I disabled these directories because downloading all data was terrible slow.
  3. If I should NOT disabling vendor/node_modules downloading, can I download files from VCS, prepare vendor/node_modules locally, and then just link all to remote server (not do this using wizard).


Or... maybe I do this in wrong way, and should differently?

0
1 comment

Unfortunately, at the moment, neither working on remote VCS is supported nor remote IDE execution.

So, if you want your project to be VCS-managed on both the local machine and the VPS, you have to drop using deployment at all.

You need to push local changes to GitHub, and then execute git pull on the remote side. You can use Remote SSH External Tools for that.

You can use the same tool to run composer/npm install to keep your dependencies intact on VPS.

0

Please sign in to leave a comment.