https://github.com/kiwiupover/ember-cli-surge
An ember addon for surge deployments
https://github.com/kiwiupover/ember-cli-surge
Last synced: 3 months ago
JSON representation
An ember addon for surge deployments
- Host: GitHub
- URL: https://github.com/kiwiupover/ember-cli-surge
- Owner: kiwiupover
- License: mit
- Created: 2015-05-15T05:37:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T04:01:36.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T01:53:16.686Z (3 months ago)
- Language: JavaScript
- Size: 3.37 MB
- Stars: 42
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember-cli-surge
[](https://greenkeeper.io/)
[](https://travis-ci.org/kiwiupover/ember-cli-surge)
[](http://emberobserver.com/addons/ember-cli-surge)
[](https://codeclimate.com/github/kiwiupover/ember-cli-surge)
[](https://badge.fury.io/js/ember-cli-surge)
[](https://david-dm.org/kiwiupover/ember-cli-surge.svg)## Static Web Publishing for Front-End Developers
[surge.sh](http://surge.sh) Zero-bullshit, single–command,
bring your own source control web publishing CDN. Yes, it's free.
[Surge Docs](http://surge.sh/help)## Installation
```sh
ember install ember-cli-surge
```## Deployment
```sh
ember surge
```The above command will build your ember app using the production environment then deploy that code to the url `.surge.sh`
By passing an environment flag `ember surge --environment development` to the ember surge command will use your development environment.
The default domain name for your project is the ``. This can be found in the `CNAME` file at the root of your project.
Use `ember generate surge-domain ` to update the domain which will update the `CNAME` file. Remember the domain name needs to be unique.For more info check out [Surge Docs](http://surge.sh/help/remembering-a-domain)
### Other commands
- `ember surge --new-domain` Add your own domain name ie: `--new-domain="kiwis-are-great.surge.sh"` or (surge.sh) will generate a domain when no argument is passed in ie:`--new-domain`
- alias: `-d`
- `ember surge --login` Login to your account at Surge (surge.sh).
- alias: `-l`
- `ember surge --whoami` Check who you are logged in as.
- alias: `-w`
- `ember surge --publish` (Default: true) Publishes a project to the web using Surge (surge.sh).
- alias: `-p`
- `ember surge --list` List all the projects you’ve published on Surge (surge.sh).
- alias: `-ls`
- `ember surge --token` Get surge.sh authentication token, great for Continuous Integration (CI).
- alias: `-t`
- `ember surge --environment` (Default: production) The ember env you want deployed default (production).
- alias: `-e`
- `ember surge --logout` Log out of your account at Surge (surge.sh).
- `ember surge --teardown` Tear down a published project.
- alias: `-td`## Contributing
We would love to hear your feedback and welcome your PRs.
Cheers.### Running Tests
* `yarn test`
* `npm run lint:js`
* `npm run lint:js -- --fix`## License
This software is distributed under the MIT license.