Added cpanfile for easier dependency installation, rename app.pl -> app.psgi for ~compliance~

This commit is contained in:
Matthew Connelly 2015-11-15 22:28:26 +00:00
parent 977d24e82d
commit 9857074291
3 changed files with 12 additions and 1 deletions

0
bin/app.pl → app.psgi Executable file → Normal file
View File

11
cpanfile Normal file
View File

@ -0,0 +1,11 @@
requires 'Dancer2';
requires 'Dancer2::Plugin::DBIC';
requires 'InflateColumn::DateTime';
requires 'DateTime::Formatter::MySQL';
requires 'DateTime';
requires 'Data::UUID';
requires 'Try::Tiny';
requires 'Inline';
requires 'Inline::Python';

2
start
View File

@ -2,4 +2,4 @@
[ -z "$APP_HOME$APP" ] && exit 1 [ -z "$APP_HOME$APP" ] && exit 1
cd $APP_HOME/$APP cd $APP_HOME/$APP
pkill -F $APP_HOME/${APP}.pid 2>/dev/null 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 plackup -s Starman -D -S $APP_HOME/$APP/.sock ./app.psgi --pid $APP_HOME/${APP}.pid