-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
33 lines (25 loc) · 1.7 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
jsProject
=========
A flexible base for developing and deploying javascript projects based around RequireJS.
Includes jQuery and coffeescript support by default, as well as an added module for css support.
Usage
=====
Run ./forkJsProject.py {project name} to fork a new jsProject in a sibling folder. The new project will refer to jsProject itself through relative paths, and is a skeleton demonstration of what a compiling project looks like.
The base of your new project's javascript (or coffeescript) code will be in webapp/src. There is also a demonstration web server in server/, which of course may be replaced if desired (or if you don't use cherrypy).
NOTE ABOUT CHERRYPY AND app.ini
===============================
Default CherryPy applications use a section called [global] in your
application's ini file to denote server and tool options. The reason we don't
do this is that reprconf does really weird things if you use cherrypy's built-in
variable cherrypy.config (because it assumes that if the file being passed to
cherrypy.config includes a [global] section, then other sections are
URL-specific). jsProject relies on running in its own instance and being
routed via e.g. nginx though, and has no need for path configuration.
To highlight this difference, please specify cherrypy options in a [cherrypy]
section rather than [global].
Running a forked application
============================
./run.py is provided as part of the source of a forked application; it handles all of the paths and whatnot necessary to run the application. Just run this
file from a desired working directory.
The current working directory will be used for app_local.ini (NOT app.ini) and
is preserved for program execution.