mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Cluster dev env: only run migrations on first node
This commit is contained in:
@@ -18,6 +18,9 @@ services:
|
||||
SDB_PORT: {{ awx_sdb_port_start }}
|
||||
AWX_GROUP_QUEUES: tower
|
||||
RECEPTORCTL_SOCKET: /var/run/receptor/receptor.sock
|
||||
{% if loop.index == 1 %}
|
||||
RUN_MIGRATIONS: 1
|
||||
{% endif %}
|
||||
links:
|
||||
- postgres
|
||||
- redis_{{ container_postfix }}
|
||||
|
||||
@@ -12,7 +12,13 @@ make awx-link
|
||||
|
||||
# AWX bootstrapping
|
||||
make version_file
|
||||
make migrate
|
||||
|
||||
if [[ -n "$RUN_MIGRATIONS" ]]; then
|
||||
make migrate
|
||||
else
|
||||
wait-for-migrations
|
||||
fi
|
||||
|
||||
make init
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user