X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Gitignore file (https://forum.x-cart.com/showthread.php?t=75916)

alexeyfrank 01-16-2018 12:11 AM

Gitignore file
 
Hey guys! Can anyone post a good .gitignore file please? I tried to search but didn't find it. Thank you

qualiteam 01-17-2018 09:56 PM

Re: Gitignore file
 
Why do you need a .gitignore file?

alexeyfrank 01-18-2018 12:17 AM

Re: Gitignore file
 
Weird question. I want to keep my source files in GIT and run deploy automatically using `git pull` for example

qualiteam 01-21-2018 10:02 PM

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.

tl00004444 06-24-2019 01:40 PM

Re: Gitignore file
 
Does the built in upgrade function cover tracking modifications to css files and template files?


Quote:

Originally Posted by qualiteam
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.



All times are GMT -8. The time now is 01:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.