Closed mtuchi closed 3 years ago
You need to install realpath on mac. brew install realpath
You need to install realpath on mac.
brew install realpath
What about in production, Am using AWS ec2 instance with ubuntu image, do i need to install realpath as well ?
You need to install realpath on mac.
brew install realpath
brew install realpath
was not working for me, So i used this quick fix
#!/bin/bash
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
realpath "$0"
I got it from stackoverflow https://stackoverflow.com/questions/3572030/bash-script-absolute-path-with-os-x
It seems to work fine but am not sure if it's a good idea
Ahh it was brew install coreutils
Btw I didn't really tested it on mac
coreutils
Ooh okay noted, It seems like most problem are solved after install coreutils
. but am still getting
/Users/mtuchi/Playground/shopware-docker/functions.sh: line 78: VHOST_${folder^^}_HOSTS: bad substitution
/Users/mtuchi/Playground/shopware-docker/functions.sh: line 121: VHOST_${folder^^}_CERT_NAME: bad substitution
/Users/mtuchi/Playground/shopware-docker/functions.sh: line 55: VHOST_${folder^^}_IMAGE: bad substitution
ERROR: The Compose file '/tmp/swdc-docker-compose.yml' is invalid because:
services.app_.image contains an invalid type, it should be a string
services.app_.extra_hosts contains an invalid type, it should be an object, or an array
ERROR: The Compose file '/tmp/swdc-docker-compose.yml' is invalid because:
services.app_.image contains an invalid type, it should be a string
services.app_.extra_hosts contains an invalid type, it should be an object, or an array
Maybe old version of bash? brew install bash?
Describe the bug Cannot start containers am getting an error saying that
realpath: command not found
and other errorsTo Reproduce Steps to reproduce the behavior:
shopware-docker
swdc
to/usr/local/bin/swdc
3.Runswdc
to testswdc up
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Environment: