Thread: Gitignore file
View Single Post
  #4  
Old 01-21-2018, 10:02 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Gitignore file

The recommended way for installing updates (even for custom modules) is the built-in upgrade function.

You can store your custom files in a git repository, but you should know that `git pull` is not enough for performing automatic updates - you have to drop the cached & compiled files from a few subdirectories in var/run and start the redeploy function that would recreate these files from your update.

As for a "good" .gitignore file - it depends on your server setup and the software/IDE that you use.
Most likely you don't need files from the "var" directory, server logs and configuration files from the "etc" directory.
"files/service" and "files/attachments" are the other directories to consider for including into the ignore file.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote