开发者

HTML5 Boilerplate Build Script - .htaccess doesn't exist

I thought I'd try out the Build Script for HTML5 Boilerplate - it's aimed at front-end designers and developers so this should be fairly straightforward right?

I'm running with a Mac so I should have all I need according to Paul.

Tried it on a blank project and immediately hit a brick wall.

  1. I ran the cd build command, pointing it to my local folder
  2. Then I ran ant build. It seemed to go OK, with a load of jibberish about how it was Building a Production environment but got stuck when looking for the htaccess file...

BUILD FAILED /Users/jaygeorge/Dropbox/Websites/Clients/H开发者_开发知识库TML-Sandbox/build/build.xml:137: The following error occurred while executing this line: /Users/jaygeorge/Dropbox/Websites/Clients/HTML-Sandbox/build/build.xml:673: Replace: source file /Users/jaygeorge/Dropbox/Websites/Clients/HTML-Sandbox/publish/.htaccess doesn't exist

Well of course the .htaccess file doesn't exist because it didn't come with the Boilerplate download. Do I need to download the htaccess file from my website so that it sits locally? I don't really understand this stuff - Was hoping Paul Irish would make his instructions more comprehensive :-(.


There should be an .htaccess file in the root folder of the ZIP file you downloaded. Note that you may have to turn on 'view hidden files' or similar in your File Explorer to see it.


Try to make empty .htaccess file and copy/paste code from: http://html5boilerplate.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜