Updated dependency list, minor change to layout, made start script more agnostic, swapped out having the application listen on a TCP port, to using unix sockets.

This commit is contained in:
Matthew Connelly 2015-10-13 01:59:46 +01:00
parent 5b76238849
commit 986ea029ee
4 changed files with 12 additions and 6 deletions

2
.gitignore vendored
View File

@ -4,6 +4,8 @@ blib
Makefile
Makefile.old
.build
.sock
*.db
_Inline
*/_Inline
data/pastes.db

View File

@ -8,6 +8,10 @@ Requirements:
- Dancer2
- Dancer2::Plugin::DBIC
- Data::UUID
- Try::Tiny
- Inline::Python
- Try::Tiny
- DateTime
- DateTime::Format::SQLite
- pip module Pygments
Note to FreeBSD users: When building Inline::Python, you may need to create a symlink from /usr/local/bin/python2.7 to /usr/local/bin/python, as Inline::Python does not, by default, look for any other binary, and no `python` symlink is created when installing python27 from pkg.

8
start
View File

@ -1,5 +1,5 @@
#!/usr/bin/env sh
[ -z "$APP" ] && exit 1
cd /home/sites/$APP
pkill -F /home/sites/$APP.pid 2>/dev/null
plackup -s Starman -D -p 12080 ./bin/app.pl --pid /home/sites/$APP.pid
[ -z "$APP_HOME$APP" ] && exit 1
cd $APP_HOME/$APP
pkill -F $APP_HOME/${APP}.pid 2>/dev/null
plackup -s Starman -D -S $APP_HOME/$APP/.sock ./bin/app.pl --pid $APP_HOME/${APP}.pid

View File

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>[% IF paste %][% paste.title || paste.id %] - [% END %]paste.were.space</title>
<title>[% IF paste %][% paste.title || paste.id %] - [% END %]App::WerePaste</title>
<link rel="stylesheet" href="/reset.css" type="text/css"/>
<link rel="stylesheet" href="/style.css" type="text/css"/>
<link rel="stylesheet" href="/solarized256.css" type="text/css"/>