Created
December 2, 2011 20:50
-
-
Save geojeff/1424785 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var g = require('../garcon/lib/garçon'); | |
var myapp; | |
var combineScripts = false; | |
//var shouldBuild = false; | |
//var stdHtmlBody = [ | |
//'<div id="loading">', | |
//'<p id="loading">', | |
//'Loading…', | |
//'</p>', | |
//'</div>' | |
//].join('\n'); | |
var server = g.Server.create({ | |
proxies: [ | |
{ prefix: '/images', // what is the url prefix of the request? | |
host: 'localhost', // to what host should be proxied | |
port: 80, // to what port on the host should be proxied? | |
proxyPrefix: '/' // with what url should the proxy request be prefixed? | |
}, | |
{ prefix: '/', // this is a catch all proxy | |
host: 'localhost', | |
port: 8080, | |
proxyPrefix: '/' | |
} | |
] | |
}); | |
myapp = g.App.create({ | |
name: 'myapp', | |
theme: 'sc-theme', | |
// htmlBody: stdHtmlBody, | |
htmlHead: '<title>MyApp</title>', | |
hasSC: true, | |
configSC: { | |
frameworkNames: "bootstrap jquery runtime handlebars core_foundation datetime foundation datastore statechart animation desktop".w() | |
}, | |
frameworks: [ | |
{ path: 'frameworks/sproutcore/themes/empty_theme'}, | |
// { path: 'frameworks/sproutcore/themes/standard_theme'}, | |
{ path: 'frameworks/sproutcore/themes/legacy_theme'}, // for SC 1.5 | |
{ path: 'frameworks/sproutcore/themes/ace'}, | |
{ path: 'frameworks/Thoth-SC'}, | |
{ path: 'frameworks/d3SC'}, | |
{ path: 'frameworks/sproutcore/frameworks/experimental/frameworks/split_view'}, | |
{ path: 'frameworks/sproutcore-upload'}, | |
{ path: 'apps/myapp'} | |
] | |
}); | |
server.addApp(myapp); | |
//myapp.save(); | |
server.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment