DEV Docs
FossilOrigin-Name: e52ecf9d629ce54fd9f6bcd0947b7817a3c9206f21da888525381607d952c9a4
This commit is contained in:
parent
62e782c8f7
commit
d7d52a0a1f
2 changed files with 17 additions and 8 deletions
11
docs/DEVELOP.md
Normal file
11
docs/DEVELOP.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Developing Treebird
|
||||
|
||||
Treebird development is a bit hacky. There are better ways to work with development
|
||||
|
||||
### Compiler flags
|
||||
|
||||
You can compile Treebird with some helpful flags, such as single_threaded to improve debugging for Treebird.
|
||||
|
||||
```
|
||||
make SINGLE_THREADED=1 all
|
||||
```
|
|
@ -35,7 +35,6 @@ If that doesn't work, you can open a CPAN shell
|
|||
```
|
||||
perl -MCPAN -e shell
|
||||
install Template::Toolkit
|
||||
install HTML::Escape
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
@ -47,15 +46,14 @@ If this succeeds (assuming you used default variables), you can now find Treebir
|
|||
- `/usr/local/share/treebird/` - Contains CSS, images, and other meta files
|
||||
- `/usr/local/bin/treebird` - Regular executable CGI file, test it by running it as is, it shouldn't spit anything out
|
||||
|
||||
### Using NGINX
|
||||
## Development
|
||||
|
||||
For developing Treebird, see `DEVELOP.md`.
|
||||
|
||||
## Nginx
|
||||
|
||||
Treebird can be served over nginx by using a FastCGI daemon such as spawn-fcgi.
|
||||
|
||||
The example static files will be in `/usr/local/share/treebird/`, with `treebird.cgi` at `/usr/local/bin/treebird`.
|
||||
|
||||
After running `make`, Treebird's files will be in the `dist/` directory. _Copy_, ***DO NOT MOVE***, **everything but treebird.cgi** of this folder to your web server. Copy `treebird.cgi` to another directory of your choosing.
|
||||
|
||||
## Nginx
|
||||
An example Nginx configuration is available in [treebird.nginx.conf](./sample/treebird.nginx.conf).
|
||||
* Make sure to change `example.com` to your instance's domain.
|
||||
* Make sure to change the `root` to wherever the static files are being stored
|
||||
|
@ -65,7 +63,7 @@ An example Nginx configuration is available in [treebird.nginx.conf](./sample/tr
|
|||
Apache hasn't caused many troubles, and is in fact, what I use for development. You can see how to start
|
||||
spawn-fcgi in `scripts/fcgistarter.sh`.
|
||||
|
||||
Example Apache configuration is available in [treebird.apache.conf](./sample/treebird.apache.conf).
|
||||
An example Apache configuration is available in [treebird.apache.conf](./sample/treebird.apache.conf).
|
||||
|
||||
#### spawn-fcgi
|
||||
|
||||
|
|
Loading…
Reference in a new issue