sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.85k stars 136 forks source link

How to update? Running `surge public/` multiple times creates new domains. #327

Closed skube closed 6 years ago

skube commented 6 years ago

I can publish to a surge domain by running surge public/.

I make changes in public/

How do I now update the surge domain?

Running surge public/ simply creates a new, random surge domain.

What am I not understanding?

sintaxi commented 6 years ago

pass in a second argument eg. surge public mydomain.surge.sh

skube commented 6 years ago

Thanks. 😄

Seems to me this could be a slightly better and more intuitive experience.

Something like surge public update would 1) save having to remember the domain used and 2) prevent having to type in the long domain.

sintaxi commented 6 years ago

Your can add your domain to a CNAME file in the root of your public folder and it will get picked up giving your the experience you want.

Also the following accomplishes the same thing...

The CLI design is intended to mimic the mv command in unix https://www.computerhope.com/unix/umv.htm