bundles/travelynx: use carton instead of cpanm
This commit is contained in:
parent
b642153e58
commit
988d7e08a0
1 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ from os.path import isfile, join
|
||||||
|
|
||||||
pkg_apt = {
|
pkg_apt = {
|
||||||
'perl': {},
|
'perl': {},
|
||||||
'cpanminus': {},
|
'carton': {},
|
||||||
}
|
}
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
|
@ -76,10 +76,10 @@ git_deploy = {
|
||||||
|
|
||||||
actions = {
|
actions = {
|
||||||
'travelynx_install_deps': {
|
'travelynx_install_deps': {
|
||||||
'command': 'cd /opt/travelynx && cpanm -in --no-man-pages --installdeps .',
|
'command': 'cd /opt/travelynx && carton install',
|
||||||
'needs': {
|
'needs': {
|
||||||
'pkg_apt:perl',
|
'pkg_apt:perl',
|
||||||
'pkg_apt:cpanminus',
|
'pkg_apt:carton',
|
||||||
},
|
},
|
||||||
'triggered': True,
|
'triggered': True,
|
||||||
},
|
},
|
||||||
|
@ -88,7 +88,7 @@ actions = {
|
||||||
# Because git_deploy does not put .git onto the server, the script
|
# Because git_deploy does not put .git onto the server, the script
|
||||||
# will complain on STDERR about not finding a git repository.
|
# will complain on STDERR about not finding a git repository.
|
||||||
# That's why we need to redirect stderr to /dev/null.
|
# That's why we need to redirect stderr to /dev/null.
|
||||||
'unless': 'cd /opt/travelynx && [ $(perl index.pl database has-current-schema 2>/dev/null) = "yes" ]',
|
'unless': 'export PERL5LIB=/opt/travelynx/local/lib/perl5; cd /opt/travelynx && [ $(perl index.pl database has-current-schema 2>/dev/null) = "yes" ]',
|
||||||
'needs': {
|
'needs': {
|
||||||
'action:travelynx_install_deps',
|
'action:travelynx_install_deps',
|
||||||
'file:/opt/travelynx/travelynx.conf',
|
'file:/opt/travelynx/travelynx.conf',
|
||||||
|
|
Loading…
Reference in a new issue