Jump to content

Files to include with Git


shogun
 Share

Recommended Posts

29 minutes ago, louisstephens said:

I do the same as wbmnfktr. I also include a github action that auto ftp/pushes the updated files to a directory on my server that can be found here: https://github.com/SamKirkland/FTP-Deploy-Action

Woah... that sounds nice.

8 minutes ago, shogun said:

What about site/assets/sessions? Those seem to create permissions problems when moving to a server. Are these needed? or are these local to the current copy of the site.

You can safely ignore them if necessary. They never caused any issues within my setups and environments so I never bothered to ignore them.

 

Link to comment
Share on other sites

Actually, the .gitignore in PW root is a nice starting point already. Some of the things I would probably add:

*.notes
*.sql
*.zip
site/assets/cache/*
site/assets/ProCache*
site/assets/pwpc/
site/assets/sessions/
wire/

.sql + .zip are most likely local backups, so I def. don't want them included

site/assets/... stuff depends - cache (regular + ProCache) stuff + sessions I'd also not want to carry over.

wire/ should certainly not be part of a repo.

btw: .notes is just how I store login details; Apache blocks web-access to any files starting with a dot anyway, but you don't want to take chances, so I added this to .gitignore too.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...