4 ms·
I'm not a paying customer of or affiliated with Surge—just a happy user. Surge is what I've always wanted to when I do frontend development for fun and learnin
by sotojuan 10y ago
I'm not a paying customer of or affiliated with Surge—just a happy user.
Surge is what I've always wanted to when I do frontend development for fun and learning. This is especially true if you're new. When you're new, you don't want to set up a server to push to Heroku or Digital Ocean, you may not want to use GitHub pages, or other alternatives (not aware of all, just the ones I mentioned). You may still be new to git and git-based deployments.
Surge is simple: `surge -p build` will upload the `build` directory and give you a nice HTTPS URL to share with your friends. `surge` does the same with the current directory. You can pick a URL under their domain or use one you own. It all takes a few seconds. Perfect for portfolios, demos, etc.
If you use npm you can `npm install --save-dev surge` and add a script that does your production build step and then calls surge to deploy it.
Very underrated service!
- windsurfer 10y agoI'm still confused what this service does. `surge -p build` and `npm install --save-dev surge` is simpler for a newbie than getting sftp credentials to a shared host? My designer friends can drag and drop, but certainly stay away from the console.
- rakoo 10y agoYou'll need a shared host first. surge automatically gives you that.
- windsurfer 10y agoAh! That's really cool then! I thought it was just the command line tool.