bundles/travelynx: update bundle for new version
This commit is contained in:
parent
82143e34ad
commit
070b466abe
2 changed files with 10 additions and 21 deletions
|
@ -5,15 +5,13 @@
|
|||
# 'localhost'.
|
||||
|
||||
{
|
||||
# Cache directories for schedule and realtime data. Mandatory. The parent
|
||||
# directory ('/var/cache/travelynx' in this case) must already exist.
|
||||
base_url => Mojo::URL->new('https://${domain}'),
|
||||
|
||||
cache => {
|
||||
schedule => '/var/cache/travelynx/iris',
|
||||
realtime => '/var/cache/travelynx/iris-rt',
|
||||
},
|
||||
|
||||
# Database configuration. host and port are optional
|
||||
# (defaulting to localhost:5432), the rest is mandatory.
|
||||
db => {
|
||||
host => '${database.get('host', 'localhost')}',
|
||||
port => 5432,
|
||||
|
@ -22,8 +20,6 @@
|
|||
password => '${database['password']}',
|
||||
},
|
||||
|
||||
# See the Mojo::Server::Hypnotoad manual for details on the following
|
||||
# settings.
|
||||
hypnotoad => {
|
||||
accepts => 100,
|
||||
clients => 10,
|
||||
|
@ -34,21 +30,14 @@
|
|||
},
|
||||
|
||||
mail => {
|
||||
# If you want to disable outgoing mail for development purposes,
|
||||
# uncomment the following line. Mails will instead be logged as
|
||||
# Mojolicious "info" messages, causing their content to be printed on
|
||||
# stdout.
|
||||
## disabled => 1,
|
||||
|
||||
# Otherwise, specify the sender ("From" field) for mail sent by travelynx
|
||||
# here. E.g. 'Travelynx <mail@example.org>'
|
||||
from => '${mail_from}',
|
||||
},
|
||||
|
||||
# Secrets used for cookie signing and verification. Must contain at least
|
||||
# one random string. If you specify several strings, the first one will
|
||||
# be used for signing new cookies, and the remaining ones will still be
|
||||
# accepted for cookie validation.
|
||||
ref => {
|
||||
issues => 'https://github.com/derf/travelynx/issues',
|
||||
source => 'https://github.com/derf/travelynx',
|
||||
},
|
||||
|
||||
secrets => [
|
||||
'${cookie_secret}',
|
||||
],
|
||||
|
|
|
@ -36,7 +36,7 @@ files = {
|
|||
},
|
||||
'/opt/travelynx/travelynx.conf': {
|
||||
'content_type': 'mako',
|
||||
'context': node.metadata['travelynx'],
|
||||
'context': node.metadata.get('travelynx'),
|
||||
'needs': {
|
||||
'git_deploy:/opt/travelynx',
|
||||
},
|
||||
|
@ -61,7 +61,7 @@ if isfile(join(repo.path, 'data', 'travelynx', 'files', 'imprint', node.name)):
|
|||
git_deploy = {
|
||||
'/opt/travelynx': {
|
||||
'repo': 'https://github.com/derf/travelynx.git',
|
||||
'rev': node.metadata['travelynx']['version'],
|
||||
'rev': node.metadata.get('travelynx/version'),
|
||||
'needs': {
|
||||
'directory:/opt/travelynx',
|
||||
},
|
||||
|
@ -84,7 +84,7 @@ actions = {
|
|||
'triggered': True,
|
||||
},
|
||||
'travelynx_database_migrate': {
|
||||
'command': 'cd /opt/travelynx && perl index.pl database migrate',
|
||||
'command': 'export PERL5LIB=/opt/travelynx/local/lib/perl5; cd /opt/travelynx && perl index.pl database migrate',
|
||||
# Because git_deploy does not put .git onto the server, the script
|
||||
# will complain on STDERR about not finding a git repository.
|
||||
# That's why we need to redirect stderr to /dev/null.
|
||||
|
|
Loading…
Reference in a new issue