Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
76285a05
Commit
76285a05
authored
Nov 13, 2017
by
BAIRE Anthony
Browse files
run prepare-allgo before every container script
(because rails requires these files/directories all the time)
parent
1676238d
Changes
6
Hide whitespace changes
Inline
Side-by-side
rails/deploy/docker/setup/dk/container_cron_daily
View file @
76285a05
#!/bin/sh
set
-e
prepare-allgo
# purge old jobs
exec
rake allgo:clean_jobs
rails/deploy/docker/setup/dk/container_cron_monthly
View file @
76285a05
#!/bin/sh
set
-e
prepare-allgo
# regenerate session key every month
generate-secret
rails/deploy/docker/setup/dk/container_migrate
View file @
76285a05
...
...
@@ -8,4 +8,6 @@ fi
set
-e
-x
prepare-allgo
rake db:migrate
rails/deploy/docker/setup/prepare-allgo
0 → 100755
View file @
76285a05
#!/bin/sh
set
-e
mkdir
-p
\
/vol/rw/datastore
\
/vol/rw/app
\
/vol/rw/system
\
/vol/log/nginx
\
/vol/log/rails
\
/vol/log/redis
\
/vol/log/sidekiq
\
/vol/log/supervisor
\
/vol/log/unicorn
\
/vol/cache/redis
\
/vol/cache/nginx
\
[
-f
/vol/cache/secret_key_base
]
||
generate-secret
rails/deploy/docker/setup/run-allgo
View file @
76285a05
...
...
@@ -2,20 +2,7 @@
set
-e
mkdir
-p
\
/vol/rw/datastore
\
/vol/rw/app
\
/vol/rw/system
\
/vol/log/nginx
\
/vol/log/rails
\
/vol/log/redis
\
/vol/log/sidekiq
\
/vol/log/supervisor
\
/vol/log/unicorn
\
/vol/cache/redis
\
/vol/cache/nginx
\
[
-f
/vol/cache/secret_key_base
]
||
generate-secret
prepare-allgo
# wait until the mysql server is ready
# (otherwise rails is unable to start)
...
...
rails/deploy/docker/setup/setup.sh
View file @
76285a05
...
...
@@ -15,7 +15,7 @@ chmod -R og+rwX /run
# scripts
ln
-s
"
$SETUP
/run-allgo"
"
$SETUP
/generate-secret"
/usr/local/bin/
ln
-s
"
$SETUP
/run-allgo"
"
$SETUP
/prepare-allgo"
"
$SETUP
/generate-secret"
/usr/local/bin/
# precompile assets
cd
/opt/allgo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment