{"id":15994410,"url":"https://github.com/oskarrough/ember-fastboot-now-deployment-example","last_synced_at":"2026-03-04T07:31:43.467Z","repository":{"id":151237913,"uuid":"81600659","full_name":"oskarrough/ember-fastboot-now-deployment-example","owner":"oskarrough","description":"How to deploy an ember-cli app to Now. Also with Ember FastBoot.","archived":false,"fork":false,"pushed_at":"2018-04-23T08:10:43.000Z","size":222,"stargazers_count":17,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T01:56:58.575Z","etag":null,"topics":["ember-fastboot","emberjs"],"latest_commit_sha":null,"homepage":"https://ember-now-deployment-example-hrwohadowc.now.sh/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oskarrough.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-10T19:44:45.000Z","updated_at":"2023-09-08T17:20:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"17b3808a-1124-4fd9-8274-8eb6b458b50f","html_url":"https://github.com/oskarrough/ember-fastboot-now-deployment-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oskarrough/ember-fastboot-now-deployment-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-fastboot-now-deployment-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-fastboot-now-deployment-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-fastboot-now-deployment-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-fastboot-now-deployment-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oskarrough","download_url":"https://codeload.github.com/oskarrough/ember-fastboot-now-deployment-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-fastboot-now-deployment-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30075427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ember-fastboot","emberjs"],"created_at":"2024-10-08T07:08:48.300Z","updated_at":"2026-03-04T07:31:43.424Z","avatar_url":"https://github.com/oskarrough.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember.js deployment to Now.sh\n\nThis example demonstrates how you can deploy an [Ember](http://emberjs.com/) + FastBoot application to [now](https://now.sh/).\n\n1. Download `now` on https://zeit.co/download)\n2. Run `now oskarrough/ember-now-deployment-example`\n\nThat's it. Now, `now` will clone the repo, it will run either `yarn` or `npm install` (depending on your lock files) in the cloud followed by `npm build` and finally `npm start` and return a unique deployment URL. \n\n## How to deploy Ember to now with FastBoot\n\nThere are three steps.\n\n1. Install ember fastboot to your ember app\n2. Create a node.js server that serves your app\n3. Configure our scripts in `package.json`\n\n1) To get server-side rendering, we need to install two new packages:\n\n```bash\nyarn add ember-cli-fastboot fastboot-app-server\n```\n\n\u003e If you can run `npm start` and see your rendered app when you view source\n\u003e Note: your app might need some modifications before it can run in a non-browser environment. See [https://ember-fastboot.com/](https://ember-fastboot.com/).\n\n2) Create a new `fastboot-server.js` file in the root of your project. Copy/paste the following:\n\n```js\nconst FastBootAppServer = require('fastboot-app-server')\nconst server = new FastBootAppServer({\n  distPath: 'dist',\n  gzip: true // Optional - Enables gzip compression.\n})\nserver.start()\n```\n\n3) Now to configure the scripts. We will need to first run ember build and then start the new fastboot server.\n\nWhen we run `now` it will run first `npm build` then `npm start` in the cloud. The normal start script for ember-cli runs `ember serve`. But through convention now allows you to overwrite what is run with `now-build` and `now-start. Like this:\n\n```json\n\"start-fastboot\": \"NODE_ENV=production node fastboot-server.js\",\n\"now-start\": \"start-fastboot\",\n```\n\n\u003e Example: [`https://ember-now-deployment-example-pqwagqtgcn.now.sh/`](https://ember-now-deployment-example-pqwagqtgcn.now.sh/) (check the source code, you'll see hello world in there)\n\n\u003e Another note: now.sh servers \"sleep\" and currently waking up can take ~30 seconds. If you have a payed account, you can avoid this with `now scale [insert-deployment-id] 1`.\n\n## How to deploy Ember to now.sh without FastBoot\n\nTo deploy stuff on now, you need a package.json with `start` and `build` scripts defined. To use different commands locally and on now, use `now-start` and `now-build`.\n\nAdd the `serve` package, which `now` will use to serve the static website.  \n\n```bash\nyarn add serve\n```\n\nUpdate `engines` in `package.json` to at least node version 6.9.0. This is a requirement from `serve`. \n\n```json\n\"engines\": {\n  \"node\": \"\u003e= 6.9.0\"\n}\n```\n\nAdd two new scripts to your `package.json`.\n\n```json\n\"scripts\": {\n  \"now-build\": \"ember build --environment=production\",\n  \"now-start\": \"serve dist --single\",\n  ...\n```\n\nThe `--single` flag to `serve` makes sure all requests are routed through your index.html.  \nRun `now`. Done.\n\n## Progressive Web App\n\nTo improve performance further, see the [\"PWA\" branch](https://github.com/oskarrough/ember-fastboot-now-deployment-example/pull/5) on this repo and https://madhatted.com/2017/6/16/building-a-progressive-web-app-with-ember.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foskarrough%2Fember-fastboot-now-deployment-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foskarrough%2Fember-fastboot-now-deployment-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foskarrough%2Fember-fastboot-now-deployment-example/lists"}