Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b865af22
Commit
b865af22
authored
May 17, 2019
by
Marcel Amirault
Committed by
Achilleas Pipinellis
May 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Follow-Up on Environments doc review
parent
30f769f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/ci/environments.md
doc/ci/environments.md
+2
-2
No files found.
doc/ci/environments.md
View file @
b865af22
...
@@ -268,7 +268,7 @@ For the value of:
...
@@ -268,7 +268,7 @@ For the value of:
which receives the value of the branch name.
which receives the value of the branch name.
-
`environment:url`
, we want a specific and distinct URL for each branch.
`$CI_COMMIT_REF_NAME`
-
`environment:url`
, we want a specific and distinct URL for each branch.
`$CI_COMMIT_REF_NAME`
may contain a
`/`
or other characters that would be invalid in a domain name or URL,
may contain a
`/`
or other characters that would be invalid in a domain name or URL,
so we use
`$CI_ENVIRONMENT_SLUG`
to g
et a "clean" or "safe"
URL.
so we use
`$CI_ENVIRONMENT_SLUG`
to g
uarantee that we get a valid
URL.
For example, given a
`$CI_COMMIT_REF_NAME`
of
`100-Do-The-Thing`
, the URL will be something
For example, given a
`$CI_COMMIT_REF_NAME`
of
`100-Do-The-Thing`
, the URL will be something
like
`https://100-do-the-4f99a2.example.com`
. Again, the way you set up
like
`https://100-do-the-4f99a2.example.com`
. Again, the way you set up
...
@@ -351,7 +351,7 @@ deploy_prod:
...
@@ -351,7 +351,7 @@ deploy_prod:
```
```
A more realistic example would also include copying files to a location where a
A more realistic example would also include copying files to a location where a
webserver (for example, NGINX) could then acess and serve them.
webserver (for example, NGINX) could then ac
c
ess and serve them.
The example below will copy the
`public`
directory to
`/srv/nginx/$CI_COMMIT_REF_SLUG/public`
:
The example below will copy the
`public`
directory to
`/srv/nginx/$CI_COMMIT_REF_SLUG/public`
:
...
...
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