adds devcontainer/codespaces support (#6250)
This commit is contained in:
1 parent
5aedcbee55
commit
de81934619
4 files changed
+62
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -xeuf -o pipefail
|
||||
|
||||
# exit this file if we are not in Codespaces
|
||||
if [ -z "${CODESPACES}" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "echo \"🚀 Welcome to Cal.com! Try typing 'yarn dx' to get a quick dev envionment.\"" >> ~/.bashrc
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -xeuf -o pipefail
|
||||
|
||||
cp .env.example .env
|
||||
|
||||
sed -i 's|NEXTAUTH_SECRET=.*|NEXTAUTH_SECRET='"$(openssl rand -base64 32)"'|g' .env
|
||||
sed -i 's|CALENDSO_ENCRYPTION_KEY=.*|CALENDSO_ENCRYPTION_KEY='"$(openssl rand -base64 32)"'|g' .env
|
||||
yarn
|
||||
|
||||
./deploy/codespaces/install.sh
|
||||
Reference in new issue
Block a user