Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghedamat/ember-deploy-demo
An example project for deploying ember applications
https://github.com/ghedamat/ember-deploy-demo
Last synced: 2 months ago
JSON representation
An example project for deploying ember applications
- Host: GitHub
- URL: https://github.com/ghedamat/ember-deploy-demo
- Owner: ghedamat
- Created: 2015-06-03T12:34:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T03:46:58.000Z (about 2 years ago)
- Last Synced: 2024-10-10T03:55:05.227Z (3 months ago)
- Language: Ruby
- Homepage: http://ember-deploy-demo.ghedamat.com
- Size: 152 KB
- Stars: 22
- Watchers: 4
- Forks: 11
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NOTE:
This repository is DEPRECATEDthe code is stil valid but the app is no longer hosted and Rails has been updated serveral times since when this was built
that said you can still look at it and explore the implementation!
# Ember Deploy Demo
An example project for deploying Ember applications.
## Rationale
There are a lot of good resources out there on how to deploy ember apps following the strategy suggested by [Luke Melia at EmberConf 2015](https://www.youtube.com/watch?v=4EDetv_Rw5U).
The [ember-cli-deploy](https://github.com/ember-cli/ember-cli-deploy) addon takes you 99% of the way there and makes this deploy method super simple.
This project puts together all the pieces and show an example workflow that allows you to use Redis/Cloudfront to serve your app in production but also to use Redis in development as well, avoiding the need to proxy from ember to your server side API.
## Live Demo/Slides
The server app serves the `index.html` from `ember-cli` and exposes an API endpoint that returns the slides.
## Running the Project(s)
Dependencies:
* NPM
* Bower
* RedisSwitch into the Rails project and install dependencies:
$ cd edd-rails
$ bundle installStart the server:
$ bundle exec rails server
Looking at http://localhost:3000, you should see "INDEX NOT FOUND" displayed. This is because we've yet to deploy an index to Redis in development.
Switch into the Ember project and install dependencies:
$ cd ../edd-cli
$ npm install
$ bower installStart the server:
$ ember serverAfter the initial build, you'll see a line line:
- ✔ Activated revision `__development__`
in the console. This means that the index has been pushed to Redis. Let's check Redis:
$ redis-cli
> KEYS edd-cli*
1) "edd-cli:current"
2) "edd-cli:revisions"
3) "edd-cli:__development__"Looks like Ember CLI Deploy pushed the indexes in. Go ahead and head back to the Rails app at http://localhost:3000 to see the `__development` index "running" inside the Rails app via Redis.
### Feedback
Please let me know what you think!
### Thanks
@lukemelia
@levelbossmike
@elucid
and all the other contributors to ember-cli-deploy