GithubHelp home page GithubHelp logo

initaldk / ember-deploy-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ghedamat/ember-deploy-demo

0.0 3.0 0.0 132 KB

An example project for deploying ember applications

Home Page: http://ember-deploy-demo.ghedamat.com

JavaScript 19.62% HTML 12.24% CSS 18.75% Ruby 48.63% Shell 0.20% GCC Machine Description 0.56%

ember-deploy-demo's Introduction

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.

The 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 project is currently hosted here: Live Demo

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
  • Redis

Switch into the Rails project and install dependencies:

$ cd edd-rails
$ bundle install

Start 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 install

Start the server:

$ ember server

After 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

ember-deploy-demo's People

Contributors

ghedamat avatar typeoneerror avatar lcpriest avatar

Watchers

James Cloos avatar enterprisegoogle avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.