forked from github/plane
cfc7049343
* chore: Added Dockerfile for Space Project * fix: next js config to standalone mode * fix: workedaround build error with rename 404 page * chore: modified dockerfile with new conventions * chore: modified dockercompose file for new plane-deploy * fix: handled ts errors with possibly undefined states * chore: updated main dockerfile with plane-deploy * feat: included space project to start.sh * chore: modified space project port while running in production * chore: restored changes inside space project * chore: added ngnix config for space project running :4000 * fix: Updated docker-compose files * chore: added space url for ngnix config * chore: Updated ngnix template * chore: updated space url in compose hub file * dev: updated dockerfile.space and start and replace script * dev: equate hub and build docker files * dev: revert workspace space page --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
16 lines
373 B
Bash
16 lines
373 B
Bash
#!/bin/sh
|
|
FROM=$1
|
|
TO=$2
|
|
DIRECTORY=$3
|
|
|
|
if [ "${FROM}" = "${TO}" ]; then
|
|
echo "Nothing to replace, the value is already set to ${TO}."
|
|
|
|
exit 0
|
|
fi
|
|
|
|
# Only perform action if $FROM and $TO are different.
|
|
echo "Replacing all statically built instances of $FROM with this string $TO ."
|
|
|
|
grep -R -la "${FROM}" apps/$DIRECTORY/.next | xargs -I{} sed -i "s|$FROM|$TO|g" "{}"
|