mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 06:11:11 +03:00
Ensured RoadRunner deps are removed when building openswoole dist file
This commit is contained in:
parent
a4f979be08
commit
7b637d6a61
2 changed files with 5 additions and 3 deletions
6
build.sh
6
build.sh
|
@ -24,18 +24,22 @@ rsync -av * "${builtContent}" \
|
|||
--exclude=*docker* \
|
||||
--exclude=Dockerfile \
|
||||
--include=.htaccess \
|
||||
--include=config/roadrunner/.rr.yml \
|
||||
--exclude-from=./.dockerignore
|
||||
cd "${builtContent}"
|
||||
|
||||
# Install dependencies
|
||||
echo "Installing dependencies with $composerBin..."
|
||||
composerFlags="--optimize-autoloader --no-progress --no-interaction"
|
||||
composerFlags="--optimize-autoloader --no-progress --no-interaction --ignore-platform-reqs"
|
||||
${composerBin} self-update
|
||||
${composerBin} install --no-dev --prefer-dist $composerFlags
|
||||
|
||||
if [[ $noSwoole ]]; then
|
||||
# If generating a dist not for openswoole, uninstall mezzio-swoole
|
||||
${composerBin} remove mezzio/mezzio-swoole --with-all-dependencies --update-no-dev $composerFlags
|
||||
else
|
||||
# If generating a dist for openswoole, uninstall RoadRunner
|
||||
${composerBin} remove spiral/roadrunner spiral/roadrunner-jobs --with-all-dependencies --update-no-dev $composerFlags
|
||||
fi
|
||||
|
||||
# Delete development files
|
||||
|
|
|
@ -34,5 +34,3 @@ logs:
|
|||
level: info # Log all http requests, set to info to disable
|
||||
server:
|
||||
level: debug # Everything written to worker stderr is logged
|
||||
metrics:
|
||||
level: error
|
||||
|
|
Loading…
Reference in a new issue