logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
sweeperqb  
#1 Posted : Friday, March 19, 2021 8:52:11 AM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Wondering if anyone is using git for source control, and if so, what your .gitignore looks like for AbleCommerce 9?

We want to do a better job of tracking code changes with AC9 than we did with AC7. First thing we did after unpacking AC 9.0.3 was commit it to a repository. After building and going through the web install process, tons of files were added, modified, or deleted. We don't want to make the same mistake as SolarWinds and accidentally commit sensitive information to the repository, nor do we want to commit anything like caches or dynamic reports that are continuously updated. Does anyone have a .gitignore setup that they feel works well with AC9?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

mazhar  
#2 Posted : Friday, March 19, 2021 9:26:48 AM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
You can see the sample plugins project gitignore as a reference.
Quote:
https://github.com/AbleCommerce/AC9-Samples/blob/master/.gitignore
sweeperqb  
#3 Posted : Friday, March 19, 2021 11:02:01 AM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Thank you mazhar. Will give it a spin. What about App_Data files that contain sensitive information like the connection string? Also, right after the first build it seems to put a bunch of files into the /Website/Plugins/ directory. Would you recommend tracking those?

Edited by user Friday, March 19, 2021 12:10:31 PM(UTC)  | Reason: Not specified

mazhar  
#4 Posted : Friday, March 19, 2021 2:06:27 PM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
You would want to ignore database.config, encryption.config, InstalledPlugins.xml, CommerceBuilder.lic, /Logs folder. You can also ignore the /Plugins folder or maybe Ignore folder under /Plugins folder. This will allow you to keep the default package zip files under source control.
sweeperqb  
#5 Posted : Monday, March 22, 2021 1:41:49 PM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Thank you, this was very helpful! I'm sure I will have to keep tinkering as progress with the understanding the system and adding our modifications, but this is a great start.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.