Skip to content

Instantly share code, notes, and snippets.

@oskarrough
Last active January 8, 2017 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oskarrough/f1df54a6adee2ec15d603d89986999bd to your computer and use it in GitHub Desktop.
Save oskarrough/f1df54a6adee2ec15d603d89986999bd to your computer and use it in GitHub Desktop.

To deploy an ember-cli application all you have to do is build the project (npm run build) and place the contents of the dist folder on a web server. You could of course do this yourself with a webhost and SFTP but that's slow. Here's how you can use surge instead.

How to deploy ember with surge

Make sure surge.sh is installed: yarn global add surge. Also see https://surge.sh/help/getting-started-with-surge. You'll need a free account.

  1. Add "deploy": "ember build --environment=production; mv dist/index.html dist/200.html; surge dist" to your npm scripts in package.json
  2. npm run deploy

If you want a specific url, change the script ala ... surge dist my-domain.surge.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment