Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
migration
Commits
83b1957b
Commit
83b1957b
authored
Aug 02, 2018
by
Emanuel Calvo
Committed by
Matteo Melli
Aug 03, 2018
Browse files
Fixes on migration script
parent
d03335db
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/database-wrangler/migration
View file @
83b1957b
#!/bin/bash
set
-eu
shopt
-s
expand_aliases
alias
ssh_remote
=
"ssh "
[[
$#
-lt
1
]]
&&
{
echo
"Specify the environment"
;
exit
1
;
}
# Because some of the script use one or another, we clone both,
# although we need to homogenize
export
ENVIRONMENT
=
$1
export
GITLAB_ENV
=
$ENVIRONMENT
source
.env_
${
ENVIRONMENT
}
# That is, .env_staging or .env_production
source
.env_
${
ENVIRONMENT
}
# That is, .env_staging or .env_production
(test also supported)
source
utilities
source
steps_
${
ENVIRONMENT
}
...
...
Write
Preview
Supports
Markdown
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