Ember-cli-surge
Static Web Publishing for Front-End Developers
surge.sh Zero-bullshit, single–command, bring your own source control web publishing CDN. Yes, it's free. Surge Docs
Installation
From within your Ember CLI application run:
For ember-cli >= 0.2.3, run:
ember install ember-cli-surge
Otherwise, for ember-cli 0.1.5 - 0.2.3, run:
ember install:addon ember-cli-surge
Deployment
ember surge
This command will build your ember app using the production environment.
Then deploy that code from your dist
folder
to the url <your-project-name>.surge.sh
Using the environment flag ember surge --environment development
to deploy your development environment.
Updating the Domain Name
The domain name that your project builds can update in the CNAME
file.
Make sure your domain is <something>.surge.sh
.
For more info look at the Surge Docs
Other commands
ember surge --login
Login to your account at Surge (surge.sh).- alias:
-l
- alias:
ember surge --whoami
Check who you are logged in as.- alias:
-w
- alias:
ember surge --publish
Publishes a project to the web using Surge (surge.sh).- alias:
-p
- alias:
ember surge --list
List all the projects you’ve published on Surge (surge.sh).- alias:
-ls
- alias:
ember surge --token
Get surge.sh authentication token, great for Continuous Integration (CI).- alias:
-t
- alias:
ember surge --logout
Log out of your account at Surge (surge.sh).
Contributing
We would love ot hear your feedback and welcome your PRs. Cheers.
Running Tests
npm test
License
This software is distributed under the MIT license.