3 ms·
One solution is to set up a droplet which serves a website from /home/deploy/web/site/ on the server. Then to deploy: rsync -Pa ./site/ deploy@your-domain.com:
by sillysaurus3 10y ago
One solution is to set up a droplet which serves a website from /home/deploy/web/site/ on the server. Then to deploy:
rsync -Pa ./site/ deploy@your-domain.com:/home/deploy/web/site/
Note: The trailing slashes are important.
I use nodemon to watch /home/deploy/web/site/ for changes, which restarts the server. There are tools like nodemon for whatever stack you're using (rails, etc).