Number 5: Maintenance - 5 lỗi cần tránh trong Drupal

Number 5: Maintenance - 5 lỗi cần tránh trong Drupal

>>Number 1: Architecture: 5 lỗi cần tránh trong Drupal Website

>>Number 2: Security 5 lỗi cần tránh trong Drupal Website

>>Number 3: Performance - 5 lổi cần tránh trong Drupal Website

>>Number 4: Infrastructure - 5 lỗi cần tránh trong Drupal

>>Number 5: Maintenance - 5 lỗi cần tránh trong Drupal

In the previous articles in this series, we've focused on aspects of architecturesecurity and performance and the choice of infrastructure. All of that work will come to little without a reliable maintenance plan. It's likely that even soon after you launch, critical improvements will need to be made, and new features added as you gain insight from usage in the wild. The process is cyclical.

The life cycle of a website begins from initial plans and extends to the end of the site. The site exists in three different phases: development, deployment, and maintenance. After the site is launched, your website lifecycle practices become critical to the success of changing and maintaining your site.

Best Practices

  • Keep your code under version control.
  • Maintain separate environments for the different stages of the site, and keep them up to date.
  • Restrict access to the production site for all but the most trusted users.
  • Review all logs periodically, including Apache, Drupal, and MySQL.
  • Review and assess your architecture periodically, and plan for the future.

Reliable collaboration through version control

  • Mistake: Not using a version control system (VCS).
  • Example: Copying code occasionally to backup folders as a method of version control.
  • Solution: Use a version control system. Git is the most popular among Drupal developers, but any modern system is better than none is fine if used. Be sure you leave meaningful commit messages so that colleagues can understand the changes you have made.

Keep organized

  • Mistake: Keeping extraneous file in the VSC repository.
  • Example: Image asset files, holiday pictures, or database dumps pushed to the repository.
  • Solution: Keep the VCS as clean and small as possible.

Deploy with version control

  • Mistake: Uploading files to production through FTP.
  • Solution: Deployment must come directly from the VCS repository.

Security during deployment

  • Mistake: Production environment not properly secured.

  • Example: Any developer can take a snapshot of production to install on their laptop.
  • Solution: Allow developers to take snapshots and have other access to development and staging environments, but allow access to the production environment only for the most trusted users.

Test on environments as similar to production as possible

  • Mistake: Development and staging environments out-of-date or missing functionality.
  • Example: Testing only in production because the other environments have old data or no connection to an external service.

  • Solution: Maintain testing environments as similar to production as possible. With these, you can easily copy from production and execute tests to assure that changes will work when moved to production.

Keep your site up to date

  • Mistake: Sites using out-of-date code for core and contributed modules.
  • Solution: Keep all modules and core as current as possible.


Number 5: Maintenance - 5 lỗi cần tránh trong Drupal

Remember that a website is a living organism. Regularly check all logs so that you’ll know where it is going. As it changes over time, you may find new ways to improve and protect it. Schedule periodic reassessment of each aspect of your site.

Keeping a large Drupal website going is a challenge on many fronts. If you follow these best practices and avoid the mistakes outlined here, you’ll find your work goes much better. You’ll keep your website functioning smoothly and your stakeholders happy.

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

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





Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

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

BadBIOS - malware kỳ lạ phá hoại phần sụn máy tính và lây nhiễm qua loa/mic?

BadBIOS - malware kỳ lạ phá hoại phần sụn máy tính và lây nhiễm qua loa/mic?

3 năm trước, chuyên gia bảo mật Dragos Ruiu đã phát hiện ra một điều gì đó bất bình thường với chiếc máy tính MacBook Air của mình khi ông đang làm việc trong phòng thí nghiệm

70 Best Free Google Android Apps(P1)

Những ứng dụng chat từ android

Some months back we mentioned about 21 Best Google Android Applications, now today we present you 70 Free Google Android apps, which are divided in categories Like, Tools, Social, Entertainment, Travel and more.

Viết bài PR trên Mạng Xã Hội như thế nào là hiệu quả?

Viết bài PR trên Mạng Xã Hội như thế nào là hiệu quả?

Giống như một bài viết PR tốt, hay bài thuyết trình trong thang máy ngắn gọn trong 1 phút, sử dụng status FB hiệu quả tất cả đều phải gọn gàng và chặt chẽ khiến người đọc không có một cơ hội để từ chối.


Drupal Services