chore: Reduce steps to spin up Codespaces (#2576)

This commit is contained in:
Sojan Jose
2021-07-06 21:21:40 +05:30
committed by GitHub
parent 104ae8de2e
commit bbc47971d7
3 changed files with 8 additions and 6 deletions

5
.devcontainer/scripts/setup.sh Executable file
View File

@@ -0,0 +1,5 @@
cp .env.example .env
sed -i -e '/REDIS_URL/ s/=.*/=redis:\/\/localhost:6379/' .env
sed -i -e '/POSTGRES_HOST/ s/=.*/=localhost/' .env
sed -i -e '/SMTP_ADDRESS/ s/=.*/=localhost/' .env
sed -i -e "/FRONTEND_URL/ s/=.*/=https:\/\/$CODESPACE_NAME-3000.githubpreview.dev/" .env