View ember-cli-error
➜ client ✗ ember s
Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
at EmberApp._initVendorFiles (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/broccoli/ember-app.js:300:55)
at new EmberApp (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/broccoli/ember-app.js:94:8)
at module.exports (/Users/bcardarella/Dropbox/projects/courier_web/client/ember-cli-build.js:6:13)
at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/models/builder.js:55:19)
at Class.module.exports.Task.extend.init (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/models/builder.js:89:10)
at new Class (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/core-object/core-object.js:18:12)
at Class.module.exports.Task.extend.run (/Users/bcardarella/Dropbox/projects/courier_web/cl
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
name: 'Bar'
});
View components.my-component.js
import Ember from 'ember';
const {
Component
} = Ember;
const MyComponent = Component.extend();
MyComponent.reopenClass({
positionalParams: ['value']
View nginx.conf
location /blog/mailchimp.xml {
try_files /blog/atom.xml @phoenix;
}
View sitemap.ex
defmodule DockYard.Sitemaps.Blog do
use Sitemap, host: "https://#{Application.get_env(:dockyard, DockYard.Endpoint)[:url][:host]}"
def generate do
posts = DockYard.Repo.all(DockYard.Post)
create do
Enum.each(posts, fn(post) ->
add "blog/#{post.slug}", priority: 0.5, changefreq: "hourly", expires: nil, mobile: true
end)
View components.class-tree.js
import Ember from 'ember';
export default Ember.Component.extend({
showPrivate: false,
filterValues: '',
showEmberData: false,
run: function() {
var g = new dagreD3.Digraph(), rootNode = {name: 'Object', namespace: 'Ember', children: []},
layout = dagreD3.layout().nodeSep(5).rankSep(60),
renderer = new dagreD3.Renderer();
View deep_fetch.exs
opts = [with: %{name: "George"}]
acc = %{
foo: %{
columns: %{
name: "Will"
}
}
}
with {:ok, override} <- Keyword.fetch(opts, :with),
View nginx.conf
location /design-sprints/ {
root /var/www/design-sprints;
index index.html;
}
View after_test.exs
defmodule DockYard.Test.Acceptance.Api.V1.CaseStudyTest do
use DockYard.ConnCase, async: false
use EctoFixtures.Case, with: DockYard.Test.Fixtures
import JsonApiAssert
@fixtures [:case_study_1, :case_study_2, serialize: true]
test "GET /api/v1/case-studies", %{conn: conn, data: data} do
conn
|> get("/api/v1/case-studies")
|> json_response(200)
View fastboot-deplo.md

App Setup

  1. ssh into server
  2. git clone the repo
  3. Configure {nginx,apache,etc} to forward requests to the fastboot server
  4. Configure {nginx,apache,etc} to fallback to static assets if fastboot is not available

App updates

  1. ssh into server