Hacker News new | ask | show | jobs
by ablerman 4469 days ago
Here are a few thoughts, some people may disagree with me, but you're new, so you don't get to be one of them.

1) Use git. Go create an account on github and use that. If you don't know how to use git, there's a tutorial at http://try.github.io/

2) Do all of your development on your local machine. That means that your local machine should be able to run your site.

3) Try to make your deployment process as simple as possible. Since it sounds like your site is small, you can probably get away with pulling the new code and restarting your web server. Total downtime should only be a few seconds. You can make it more complex as you get your feet under you.

1 comments

What happens if I open up a live .php file and just paste new working code and hit "Save"? What happens on the end user-side if I do that? Furthermore, I'm with DO and I don't think I've ever rebooted my virtual server.
Ah, I was unclear. When I said restart your web server, I didn't mean to reboot the machine. Just restart the web server process. Nginx or Apache or whichever you're using.
Why does it need to be restarted ? It seems that when I save a file, the changes reflect on the site automatically