Laravel 5 - Mercurial recommended .hgignore

Using Laravel 5.x. or 5.1.x What would be the basic recommended configuration for the .hgignore file?

Pulling from the .gitignore this is what I have:

syntax: glob
.env
.gitignore
.gitattributes
.idea
vendor/
node_modules/
Homestead.yaml
Homestead.json

Online I see for version 4 something about /bootstrap/compiled.php Should I include /bootstrap/cache ?

Answers


I use negative lookahead to include the empty folder structure:

## Laravel specific
^\.env$
^vendor

## General
\.DS_Store$
[Tt]humbs\.db$

## Keep these folders, but ignore their content
^bootstrap/cache/(?!\.gitignore).+$
^storage/logs/(?!\.gitignore).+$
^storage/app/(?!\.gitignore).+$
^storage/framework/views/(?!\.gitignore).+$
^storage/framework/sessions/(?!\.gitignore).+$
^storage/framework/cache/(?!\.gitignore).+$

Need Your Help

Python: sys.platform Incorrect result

python ubuntu version

I use Python shell under Ubuntu 13.10. My Linux Kernel version is "3.11.0-13-generic". So why in Python variable "sys.platform" stored value "Linux2" instead of "Linux3"?