Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Gitignore file

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 01-16-2018, 12:11 AM
 
alexeyfrank alexeyfrank is offline
    
Join Date: Oct 2014
Posts: 1
 

Default Gitignore file

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

The following user thanks alexeyfrank for this useful post:
tl00004444 (06-24-2019)
  #2  
Old 01-17-2018, 09:56 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Gitignore file

Why do you need a .gitignore 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
  #3  
Old 01-18-2018, 12:17 AM
 
alexeyfrank alexeyfrank is offline
    
Join Date: Oct 2014
Posts: 1
 

Default Re: Gitignore file

Weird question. I want to keep my source files in GIT and run deploy automatically using `git pull` for example
__________________
5.1
Reply With Quote

The following user thanks alexeyfrank for this useful post:
tl00004444 (06-24-2019)
  #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
  #5  
Old 06-24-2019, 01:40 PM
 
tl00004444 tl00004444 is offline
 

Newbie
  
Join Date: Jan 2019
Posts: 4
 

Default 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.
__________________
x-cart 4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:19 PM.

   

 
X-Cart forums © 2001-2020