V
V
Vyacheslav Correct2018-07-25 15:56:43
Network administration
Vyacheslav Correct, 2018-07-25 15:56:43

Vps instead of local server for php web development?

There is a computer without HDD, I decided to do the web on it, put puppyrus and netbeans on a USB flash drive. There is a VPS on which I have opened OpenVPN. The question arose, is it possible to raise a web server with GIT on this VPS in order to write web applications and test them there and watch them from a local computer? Will this interfere with OpenVPN and how can I write on a local computer through netbeans and watch in a browser with a VPS? What stones will have to face in this case. Sites will be without domains, as I understand it, it will be enough to make changes in hosts so that the address in the browser leads to a folder on the VPS. And is it possible to do without a local GIT repository?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Skobkin, 2018-07-25
@skobkin

is it possible to set up a web server with GIT on this VPS to write web applications

Yes.
No.
NetBeans has SFTP synchronization. In this case, it is configured so that when the file is saved, it is automatically uploaded to the server.
From the point of view of raising the configuration, there are no particular pitfalls. But from the point of view of the suitability of this for development, it will not be very convenient. Better local virtual machine (easier) or Docker (harder).
There will be problems, for example, with setting up XDebug (not impossible, but less convenient and you need to raise the proxy.
And other little things.

M
m0nym, 2018-07-25
@m0nym

how to write on a local computer through netbeans and watch in a browser with a VPS?

Alexey Skobkin ,
NetBeans has SFTP synchronization. In this case, it is configured so that when the file is saved, it is automatically uploaded to the server.
SSHFS is more practical

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question