6 ms·
I use IDEA and VS Code and Notepad++ and ... I'm kind of surprised you did a deploy from VS Code. I would have assumed there was another tool for that. I do mo
by csours 4y ago
I use IDEA and VS Code and Notepad++ and ...
I'm kind of surprised you did a deploy from VS Code. I would have assumed there was another tool for that. I do most of my git and ssh/scp stuff from the command line because I'm never quite sure what the tool will try to do to "help me out"
- joshstrange 4y agoFor myself it's all about reducing the delay between "writing code" and "seeing the results". Dropping down to scp or run a script to deploy files seems like an unnecessary delay/break in my development process that I don't like adding in. If you can develop 100% locally this isn't an issue but we can't (or haven't taken the time to do so). Think of the dev server as just a VM running locally and it might make more sense.
- mynameisvlad 4y agoWhy not pop out an integrated terminal and execute commands there? It's still within the editor and you could have a shell script that runs to deploy.
- joshstrange 4y agoIt all comes back to that "development cycle" and wanting to make that as short as possible. What you suggest is absolutely fine, it's just my personal preference (and something that I've seen help other devs) to make the "write code"->"see results" as tight as possible. If you add any delays, any potential chance of forgetting a step, etc then it breaks my programming flow which can kill my productivity.
- mynameisvlad 4y agoBut aren't you executing a task either way? Either running a script, or executing a command through Ctrl/Cmd+Shift+P, you have to do something to deploy. I mean, hell, just set up gulp/grunt/another task runner to watch your files and run scp if you want it continuously running? Why involve your IDE at all at that point?
- joshstrange 4y agoAhh, I see the disconnect. I set it up to deploy on save of the file or when the editor loses focus (when it auto-saves). So while you are correct I have to do “something” to make it deploy that “something” is either a hot key or me clicking out of my editor into the browser to refresh the page (talking about PHP here, all my frontend Vue work I do locally with a watch script to rebuild on changes).
- mynameisvlad 4y agoFair, that's more or less equivalent to a task runner watching the files. I'd recommend that approach only because it decouples the action from the editor. As long as the file changes, it executes.
- mixmastamyk 4y agoI do the same with inotify tools and an alias or makefile. A simple editor like Geany can save on focus change.
- bbkane 4y agoI generally make a "run.sh" script or Makefile to build and deploy. Then it's just a few tappity taps in the terminal to run it again. Still not as good as a "play" button, but easier to set up in many cases.
- fendy3002 4y agoRemote ssh to dev server and develop directly there using vscode man.