Seems possible for Surge to choke on certain CNAME files on Windows.
When I made the CNAME file with a text editor, everything was fine
When I made the CNAME file from the command line, Surge didn’t deploy to a real URL (and said successful even though it wasn’t)
To recreate, on Windows:
echo github-issue-test.surge.sh > CNAME
Then:
C:\Users\IEUser\Desktop\temp> ls
Directory: C:\Users\IEUser\Desktop\temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 3/12/2015 10:03 PM 56 CNAME
-a--- 3/12/2015 10:02 PM 30 index.html
C:\Users\IEUser\Desktop\temp> surge
email: kenneth+windows@chloi.io
project path: (C:\Users\IEUser\Desktop\temp)
size: 2 files, 86 bytes
IP address: 192.241.214.148
Success! Project is published and running at ??c n a m e - i s s u e - t e s
t . s u r g e . s h
I don’t know why this would happen, but something about how the file is created in that manner doesn’t seem to work properly. It would be nice to know so that we could either fix it in Surge or find a better one-liner for creating CNAME files on Windows.
Seems possible for Surge to choke on certain
CNAME
files on Windows.CNAME
file with a text editor, everything was fineCNAME
file from the command line, Surge didn’t deploy to a real URL (and said successful even though it wasn’t)To recreate, on Windows:
Then:
I don’t know why this would happen, but something about how the file is created in that manner doesn’t seem to work properly. It would be nice to know so that we could either fix it in Surge or find a better one-liner for creating
CNAME
files on Windows.