zencart / habitat

Vagrant Zen Cart development box
4 stars 1 forks source link

Vagrant for Windows Issue #5

Closed Pan2020 closed 7 years ago

Pan2020 commented 8 years ago

I wonder if anyone using this?

image

Vagrant for Windows somehow having error on serve.sh file and therefore unable to get files from the git repository (no files being loaded after I typed http://zen.local/ or 172.22.22.22

image

drbyte commented 8 years ago

In your habitat.yml file, can you try adding docroot: /public ... just in case there's a problem with it not understanding how to handle an empty value for that?

sites:
  - domain: zen.local
    dir: v160
    skeleton: apache.default
+   docroot: /public
    git_url: https://github.com/zencart/zencart.git
    branch: v160

(Don't include the + shown at the start of the line. That's just to make it show in green so you know where to put it.)

Pan2020 commented 8 years ago

Edited file

image

Done the provision, still no good...

image

I suspect something is wrong on serve.sh file. Is library changed or may need code adjustment?

drbyte commented 8 years ago

There's no library to update.

But it might be that the line-endings in the serve.sh file have been mangled (windows vs linux challenge). So you could try opening serve.sh in notepad++ and add a blank line to the bottom of the file (just so something is changed), and re-save it. Then try reprovisioning.

(I don't have a Windows box to test this on.)

zcwilt commented 8 years ago

I have a windows laptop that I run habitat/vagrant on with no problems. Although it is possible I did edit serve.sh, I can't remember doing so.