Here's how you can get server-side rendering with Ember + FastBoot and deploy it with now.sh.
It requires an ember-cli application that doesn't fail when you run ember fastboot --serve-assets
. Also that you have now.sh installed.
ember install ember-cli-fastboot
- Add a
server.js
(example) ember build -p
cp server.js dist/server.js
- Add a start script to
dist/package.json
(example) cd dist; npm i --save fastboot-app-server; cd ..
now dist
So, of course this should be automated. Especially steps 5. and 6. Be my guest! But it works for now.
- Add
"deploy": "ember build --environment=production; now dist"
to your npm scripts in package.json npm run deploy
This is easier, since we are building the project locally instead of letting now do it.
@oskarrough thanks for this write up! but unfortunately #5 references a dead link if you'd like to update the gist :)