H
H
herooid2021-01-04 03:43:44
Work organization
herooid, 2021-01-04 03:43:44

How to develop directly online?

Challenge: Quickly and easily test integrations with various APIs (including webhooks). And get rid of the manual transfer of written code from local to hosting, otherwise it is very annoying.
Now, in order to test and debug some kind of integration with getting data via webhooks, I have to use var_dump and logging. In addition, after each fix, re-upload the code to the hosting and clear the logs. This takes a lot of time, but I don't know of any other way yet, and (for example) all services can't be forced to send data from webhooks to my local PC. At the same time, I can definitely see on the local that there is a convenient xdebug.

Briefly speaking: is it possible to somehow connect xdebug (or something similar) to the hosting, while writing code and debugging on the local area, uploading the code to the hosting by pressing hotkeys? In general, I understand that this is possible, but I can’t draw up a roadmap for myself on how to do it ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2021-01-04
@DKWLB

I'm not very good at this. And I met the words webhook only when trying to develop a telegrambot on Laravel. But as now I remember the key words.
Ngrok and tunnel. This magic allowed showing the site from the local server directly to the network.
And everything somehow worked). Look at them, suddenly what thoughts will lead

N
nokimaro, 2021-01-04
@nokimaro

PhpStorm has the ability to automatically upload changes via ftp/sftp when saving a file via ctrl+s

Tools -> Deployment -> Automatic upload

Another option is to use NFS and mount the server's file system as a local file system
. And xdebug and other goodies can be installed on a remote server in the same way as on a local one.

S
Steppp, 2021-01-04
@Steppp

Hosting companies have a github, not all of them(
You make a project on a github, and add "git remote add ... ... ..." hosting address! Then just push to the hosting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question