public
Description: JavaScript Application Framework - JS library only
Home | Edit | New

Changing your application build root

If you don’t like the location sc-build puts your application files ( ‘/static’, by default), you can edit the sc-config.rb file in the root directory of your workspace and change the c[:resources_at] setting to whatever you like. For example, if you wanted to place your built app at “http://yourserver.com/foo/bar/my_sc_app”, you’d change the setting to:

c[:resources_at] = ‘foo/bar’

To make the resources relative, do:

c[:resources_relative] = ‘true’

Related

References

Comments

  • A SproutCore glossary would be nice. First on the list, clear definitions of “workspace” and “application” in a SproutCore context. [UPDATE: a glossary has been added to the Wiki here.]
Last edited by erichocean, Thu Jul 03 19:43:17 -0700 2008
Home | Edit | New
Versions: