diff --git a/.gitignore b/.gitignore index 6eb0f66..7d01814 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ blib Makefile Makefile.old .build +.sock *.db _Inline +*/_Inline data/pastes.db diff --git a/README.md b/README.md index 8ee431e..5d56451 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/start b/start index f75ab48..43dd4d3 100755 --- a/start +++ b/start @@ -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 diff --git a/views/layouts/main.tt b/views/layouts/main.tt index 75c581e..a1df459 100644 --- a/views/layouts/main.tt +++ b/views/layouts/main.tt @@ -1,7 +1,7 @@ - [% IF paste %][% paste.title || paste.id %] - [% END %]paste.were.space + [% IF paste %][% paste.title || paste.id %] - [% END %]App::WerePaste