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?
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close