Skip to content

Commit

Permalink
add deploy configuration and script
Browse files Browse the repository at this point in the history
This is a temporary solution until Statocles is rewritten to have deploy
commands, and then we should be able to configure and use those instead.
  • Loading branch information
preaction committed Nov 24, 2018
1 parent ffea76f commit 2e24463
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions eg/doc-site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deploy/
9 changes: 9 additions & 0 deletions eg/doc-site/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

root=$(dirname $0)
deploy=$root/deploy

if [ ! -d $deploy ]; then
mkdir $deploy
fi
perl $root/myapp.pl export -m preaction --to $deploy
rsync -rvzm --delete $deploy/. preaction.me:/var/www/www.preaction.me/yancy/.
2 changes: 2 additions & 0 deletions eg/doc-site/myapp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
};
app->db->auto_migrate(1)->migrations->from_data( 'main' );

plugin Config => { default => {} };

plugin 'PODViewer', {
default_module => 'Yancy',
allow_modules => [qw( Yancy Mojolicious::Plugin::Yancy )],
Expand Down
6 changes: 6 additions & 0 deletions eg/doc-site/myapp.preaction.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
export => {
paths => [ '/' ],
base => '/yancy',
},
}

0 comments on commit 2e24463

Please sign in to comment.