mirror of
https://github.com/simon987/od-database.git
synced 2025-12-14 23:29:04 +00:00
Add mass import utility
This commit is contained in:
1
jenkins/Jenkinsfile
vendored
1
jenkins/Jenkinsfile
vendored
@@ -39,6 +39,7 @@ pipeline {
|
||||
sshPut remote: remote, from: 'uwsgi.py', into: 'od-database'
|
||||
sshPut remote: remote, from: 'views.py', into: 'od-database'
|
||||
sshPut remote: remote, from: 'config.py', into: 'od-database'
|
||||
sshPut remote: remote, from: 'mass_import.py', into: 'od-database'
|
||||
sshPut remote: remote, from: 'do_recrawl.py', into: 'od-database'
|
||||
sshPut remote: remote, from: 'od-database.ini', into: 'od-database'
|
||||
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'od-database'
|
||||
|
||||
@@ -16,9 +16,17 @@ screen -S oddb_web -d -m bash -c "cd ${ODDBROOT} && source env/bin/activate && u
|
||||
sleep 1
|
||||
screen -list
|
||||
|
||||
echo "Installing crontab"
|
||||
echo "Installing crontabs"
|
||||
absolute_dir=$(cd ${ODDBROOT} && pwd)
|
||||
|
||||
# Re-crawl dirs
|
||||
command="bash -c \"cd '${absolute_dir}' && source env/bin/activate && python do_recrawl.py >> recrawl_logs.txt\""
|
||||
job="*/10 * * * * \"$command\""
|
||||
job="*/10 * * * * $command"
|
||||
echo "$job"
|
||||
cat <(fgrep -i -v "$command" <(crontab -l)) <(echo "$job") | crontab -
|
||||
|
||||
# Cleanup captchas
|
||||
command="bash -c \"cd '${absolute_dir}' && rm captchas/*.png\""
|
||||
job="*/60 * * * * $command"
|
||||
echo "$job"
|
||||
cat <(fgrep -i -v "$command" <(crontab -l)) <(echo "$job") | crontab -
|
||||
|
||||
Reference in New Issue
Block a user