How Can I Improve my Workflow?

So I design and develop websites myself, mostly in WordPress. Once I’m happy with the site on my local server, I upload it and its database to the web server and let the client make whatever changes to the site. When he/she needs me to make changes to the code or the backend of WP, I usually work on the remote version of the site from then on, which is a pretty slow process compared to working locally.

I guess what I’m asking is, is there a way to work on a local version of the site which syncs any changes made to the remote version of the site? Is this version control by any chance?

Here’s my typical workflow:

  • Set up local database
  • Code local WordPress site
  • Export local database
  • Import local database to remote server
  • Upload all files to remote server
  • Continue to make any changes post-launch remotely

Is there any way to improve my current workflow?

1

If you have SSH access to your servers and if you’re familiar with Linux shell commands, you can use Capistrano to automate your deployment process. It’s an automated deployment tool built in Ruby and is widely used in many Ruby on Rails projects. Of course, this isn’t limited to just Ruby on Rails. You can also use Capistrano for other Ruby frameworks, and other languages as well.

The typical steps that Capistrano takes are the following:

  • Gets access to your SVN/Git/Mercurial repository
  • Clones your project into the remote server
  • Does additional tasks according to what you want (Like importing the database)

This means that you have to incorporate version control into your workflow as well, which is actually good for since it makes your life easier. Capistrano supports SVN, Git, and Mercurial, so you can use whatever you prefer.

Another note, Capistrano is originally built for deploying Ruby on Rails projects, so you have to customize it to work on PHP. This article demonstrates how you can use Capistrano for your PHP projects.

git and svn/subversion are popular version control systems that can handle this. I would recommend git because it’s now more widely used (it seems like everyone has a github these days). git allows you to choose which files you want to track and which you don’t. In this case you would have two repositories, one remote and one local. When you make changes locally you can commit them and then push them to the remote server in a few commands. This will also track changes if your client ever decides they want to revert to a previous version or something goes wrong.

Also, vim is always my first suggestion for anyone wanting to improve workflow (or emacs if you’re like that). If you get good at vim then you can often cut the man in the middle and develop remotely with great efficiency. Many editors also allow for remote editing. Vim coordinates well with git through the fugitive.vim plugin by Tim Pope. This streamlines git and vim efficiency.

There is also rsync which is what you’re describing sounds like. It keeps directories, whether remote or local, in sync. It’s relatively fast but doesn’t have any version control options.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật