Skip to content

Commit

Permalink
Adjust app name
Browse files Browse the repository at this point in the history
  • Loading branch information
sanG-github committed Jan 30, 2024
1 parent 5eea041 commit 14856ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .template/spec/support/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.test_container
logger.warn "Container: #{container.id} #{container.info['Names']}"
end

container_name = "#{ENV.fetch('APP_NAME')}-test-run"
container_name = "#{ENV.fetch('APP_NAME')}-test"
container_id = `docker ps -qf "name=#{container_name}"`
logger.warn "Container name: #{container_name}"
logger.warn "Container ID: #{container_id}"
Expand Down
2 changes: 1 addition & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'shellwords'

# Variables
APP_NAME = app_name
APP_NAME = app_name.tr('_', '-')
# Transform the app name from slug to human-readable name e.g. nimble-web -> Nimble
APP_NAME_HUMANIZED = app_name.split(/[-_]/).map(&:capitalize).join(' ').gsub(/ Web$/, '')
DOCKER_REGISTRY_HOST = 'docker.io'
Expand Down

0 comments on commit 14856ea

Please sign in to comment.