Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dtu-enote-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enote
dtu-enote-website
Commits
d31804a3
Commit
d31804a3
authored
6 years ago
by
iaibrys
Browse files
Options
Downloads
Patches
Plain Diff
Remove debugging statements; another try at deploy.
parent
cd0f46da
No related branches found
No related tags found
No related merge requests found
Pipeline
#58
failed
6 years ago
Stage: build
Stage: test
Stage: release
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
config/application.rb
+3
-10
3 additions, 10 deletions
config/application.rb
with
4 additions
and
11 deletions
.gitlab-ci.yml
+
1
−
1
View file @
d31804a3
...
...
@@ -57,10 +57,10 @@ deploy_devel:
script
:
-
echo "Deploy to development server"
-
cd /enote/src/dtu-enote
-
docker pull $CONTAINER_RELEASE_IMAGE
-
docker stop course_website
-
docker ps -q -f status=exited | xargs -I '{}' docker rm -f '{}'
-
docker ps -q -f status=dead | xargs -I '{}' docker rm -f '{}'
-
docker pull $CONTAINER_RELEASE_IMAGE
-
docker images | grep ${CI_PROJECT_PATH}
-
bundle exec rake deploy:redeploy[dtu-enote-website]
-
docker image prune -f
...
...
This diff is collapsed.
Click to expand it.
config/application.rb
+
3
−
10
View file @
d31804a3
...
...
@@ -32,7 +32,7 @@ module DTUCourseWebsite
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config
.
time_zone
=
ENV
[
'TIMEZONE_CITY'
]
||
'UTC'
config
.
time_zone
=
ENV
.
fetch
(
'TIMEZONE_CITY'
)
{
'UTC'
}
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
...
...
@@ -45,16 +45,9 @@ module DTUCourseWebsite
config
.
dtu_data
=
{
root_path:
ENV
.
fetch
(
'DTU_DATA_ROOT'
)
{
'/data'
},
filemanager_path:
ENV
.
fetch
(
'DTU_FILEMANAGER'
){
'/filemanager'
},
redis:
ENV
[
'DTU_REDIS_URL'
]
||
'redis'
,
redis:
ENV
.
fetch
(
'DTU_REDIS_URL'
)
{
'redis'
}
,
source:
'core'
}
ap
config
.
dtu_data
ap
ENV
[
'DTU_DATA_ROOT'
]
ap
ENV
[
'PRECOMPILE'
]
ap
DtuCore
::
constants
# ap DtuCore::Engine::DtuCore::constants
# ap DtuCore::Engine::DtuCore::SessionsHelper::constants
# allow precompile in dockerfile (i.e. when DB may not be available)
# http://stackoverflow.com/questions/8997226/rake-assetsprecompile-attempting-to-connect-to-database
# (note: this is not a sufficient solution: see initializes/redis.rb)
...
...
@@ -64,7 +57,7 @@ module DTUCourseWebsite
g
.
test_framework
:rspec
end
log_level
=
String
(
ENV
[
'LOG_LEVEL'
]
||
'info'
).
upcase
log_level
=
String
(
ENV
.
fetch
(
'LOG_LEVEL'
)
{
'info'
}
).
upcase
config
.
logger
=
Logger
.
new
(
STDOUT
)
config
.
logger
.
level
=
Logger
.
const_get
(
log_level
)
config
.
log_level
=
log_level
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment