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.

Conclusion

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

 

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 sử dụng Organic Groups module trong Drupal 7

Hướng dẫn sử dụng Organic Groups module trong Drupal 7

Organic Groups (OG) is the social networking solution for Drupal.

Thị trường nhân dụng qua Internet

Thị trường nhân dụng qua Internet

Thế kỷ 21 là kỷ nguyên của sự bùng nổ thông tin, và đi theo với sự phát triển của mạng Internet đã có không biết bao nhiêu dịch vụ và các cơ hội kinh doanh cho những ai biết sử dụng nó và có sáng kiến trong lãnh vực của mình.

Bầu Đức tôi đi thăm chuối thăm heo về thì ngủ rất ngon

Bầu Đức - tôi đi thăm chuối thăm heo về thì ngủ rất ngon

Chuối của Tập đoàn Hoàng Anh Gia Lai hiện đang xuất qua Nhật, Hàn, Trung Quốc. Mỗi buồng chuối đều được dán tem có mã code truy xuất nguồn gốc

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

 

Diet con trung