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
|
@ -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…
Add table
Add a link
Reference in a new issue