Skip to content

Instantly share code, notes, and snippets.

@rtablada
Created May 19, 2014 18:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save rtablada/027072d6632946b655ea to your computer and use it in GitHub Desktop.
Save rtablada/027072d6632946b655ea to your computer and use it in GitHub Desktop.
Build Script for using Ember CLI and Laravel PHP
ember build
cp dist/index.html app/views/app.php
cp -r dist/assets public/assets
// At the bottom of your routes file add this catch-all route to serve up your built ember application:
Route::get('{data?}', function()
{
return View::make('app');
})->where('data', '.*');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment