I am having difficulties installing the website from git. After I run composer install --no-dev -o I get this error: Class 'Twig_Cache_Filesystem' not found
This is my .gitignore file, isn’t composer install --no-dev -o enough to install it?
I’m not sure how Composer handles this install, but I always commit the plugins folder as it also updates at times. As I don’t use the admin plugin on live, or in staging, it is entirely secure because there are no avenues for attack other than potentially Grav itself or server-access - neither of which seems to be a problem.
I use the following for pushing to a staging repository. Basically includes everything from Grav except for the cache and logs, and excludes common development files.
# Grav
/cache
/logs
# Created by https://www.gitignore.io/api/node,bower,sass,windows
### Node ###
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules
jspm_packages
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
### Bower ###
bower_components
.bower-cache
.bower-registry
.bower-tmp
### Sass ###
.sass-cache/
*.css.map
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk