Website Drupal của bạn đã thật sự release và hoàn thành test chưa?

Website Drupal của bạn đã thật sự release và hoàn thành test chưa?

When we inherit Drupal sites for maintenance, I suggest implementing release control and creating a staging (test) site. When new customers hear this, they naturally ask why they need this. Frankly, they've never heard of any of this technical gobbledygook.

I've written this email so many times, I thought I would just publish it here and I can send folks this url.

git is a source control package. It allows you to track all changes to your code. It allows you to immediately revert to any version in the past. When the master repository is kept in a commercial repository (like bitbucket or github), the repository is also an effective backup for code. The Drupal database is not included in the repository.

In our development process, we usually have three distinct sites. First, there's the production site - the one that the world sees. Then, we have a staging site, often named staging.yoursite.com, dev.yoursite.com or test.yoursite.com. We put a username and password in front of this site so that search engines can't index it. Finally, a developer has a local, development version on his local machine.

  1. When a developer starts working on a site, he/she pulls the production code from the git repository and copies the production database down from the production site. During development, he could potentially completely mess up the site and display disconserting errors, but only he sees it. If he did this work on your production site, your customers would see this.
     
  2. When he gets the feature running as desired, he pushes his code changes to the repository. Then, he goes to the staging site and pulls these changes from the repository and makes any associated database changes.
     
  3. The customer goes to the staging site and tests the change.
     
  4. If the change is accepted, the developer goes to the production site and pulls the changes from the repository and makes any database changes required.

Without this workflow:

  • You cannot easily revert changes.
  • You are more likely to display errors to your customers.
  • You still should do full backups, but the git repository can serve as a code backup.
  • You can be testing one set of changes on staging while you're running the fully-tested code on production.

I hope that this post can help others quickly explain to the general business manager why release control and the staging/production workflow is worth doing.

Bạn thấy bài viết này như thế nào?: 
Average: 5 (2 votes)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Hướng dẫn thêm pURL Multidomain XMLSitemap 2016

Hướng dẫn thêm pURL Multidomain XMLSitemap 2016

On a recent project, we had to create multiple sitemaps for each of the domains that we have setup on the site

The Power of the Web

Sức mạnh của Website trong marketing online

Clayton Christensen's book, "The Innovator's Dilemma," rocked conventional business thinking when it came out in 1997. Christensen, a professor at Harvard Business School, showed that new technologies often failed because the companies offered new technologies to the existing customer base.

Bài 4 : Học sinh lập trình Scratch tạo thêm nhân vật thứ hai

Bài 4 : Học sinh lập trình Scratch tạo thêm nhân vật thứ hai

Trong cửa sổ Scratch, bạn hãy mở tập tin chương trình mà bạn đã lưu sau khi thực hiện trò chơi đơn giản “Dơi bắt chuột”. Nhìn lại những gì đã làm

Công ty diệt chuột T&C

 

Diet con trung