Skip to content
Snippets Groups Projects
Commit d31804a3 authored by iaibrys's avatar iaibrys
Browse files

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
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment