Comments (3)
Hello @jfmatth, I have already come across the issue you mention (I mostly use Winows) and, (as a Q+D solution) if you convert endlines in the .sh files from windows to unix Vagrant provision will work.
This is caused by the core.autocrlf setting (http://git-scm.com/book/ch7-1.html) which is tweaked when you install git for windows (the installer will ask you what you want to do with your line endings when checking out code and commiting).
The git for windows installer says that the best option is to have autocrfl = true. This means that when you commit your line endings will be converted to windows (that's why you see the \r in the privisioning .sh files) and when you check out your line endings will be converted to unix.
There is a great amount of discussion in SO on which should be the best autocrfl strategy (http://stackoverflow.com/questions/2825428/why-should-i-use-core-autocrlf-true-in-git and http://stackoverflow.com/questions/170961/whats-the-best-crlf-handling-strategy-with-git), but my recommendation, since we are talking about the python world, is to use autocrlf = input. That way, when you commit files containing windows line endings they will be converted to unix, but you won't convert unix line endings when you check out (so, .sh scripts will work).
from wagtaildemo.
@spapas , thanks for the very thorough explanation. I've seen this before on other vagrant installs on Windows (cloud foundry comes to mind). It's a huge pain
I may try and run it on cygwin, and see what happens. Ill let you know.
J
from wagtaildemo.
OK, so i installed in Cygwin with your suggestions, and it worked fine. I'll try in Windows next, but wanted to update you.
from wagtaildemo.
Related Issues (20)
- After clicking "Deploy to Heroku", requests for admin CSS and JS results in HTTP 503 errors HOT 5
- How can I process the form template input? HOT 1
- It is mentioned not to use wagtail demo for starting a site. Are there any security risks? HOT 2
- custom image model with RichTextField
- pip installing uwsgi fails, upgrade to 2.0.13 HOT 1
- Recomended way of doing page comparison using urls as identifiers HOT 1
- InlinePanel related_name problem
- Unicode-objects must be encoded before hashing HOT 3
- PATH_TO_WAGTAIL in settings/local.py ignored HOT 4
- SQLite instructions need improving HOT 1
- Error when installing requirements HOT 4
- Deploy to Heroku not working
- Heroku deployment broken HOT 1
- createdb: could not connect to database template1: FATAL: Peer authentication failed for user "postgres" HOT 8
- Fail installing packages without Postgresql HOT 1
- Error on importing html5lib package HOT 2
- StreamField issue HOT 1
- Online Demo HOT 1
- top_menu HOT 2
- 0030_auto_20160810_1340, 0029_unicode_slugfield_dj19 in wagtailcore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wagtaildemo.