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.
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.
- Add
"deploy": "ember build --environment=production; mv dist/index.html dist/200.html; surge dist"
to your npm scripts in package.json npm run deploy
If you want a specific url, change the script ala ... surge dist my-domain.surge.sh
.