mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
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>
30 lines
1011 B
Bash
Executable File
30 lines
1011 B
Bash
Executable File
#!/bin/bash
|
|
cp ./.env.example ./.env
|
|
|
|
# Export for tr error in mac
|
|
export LC_ALL=C
|
|
export LC_CTYPE=C
|
|
|
|
|
|
# Generate the NEXT_PUBLIC_API_BASE_URL with given IP
|
|
echo -e "\nNEXT_PUBLIC_API_BASE_URL=$1" >> ./.env
|
|
|
|
# Generate the SECRET_KEY that will be used by django
|
|
echo -e "SECRET_KEY=\"$(tr -dc 'a-z0-9' < /dev/urandom | head -c50)\"" >> ./.env
|
|
|
|
# WEB_URL for email redirection and image saving
|
|
echo -e "WEB_URL=$1" >> ./.env
|
|
|
|
# Generate Prompt for taking tiptap auth key
|
|
echo -e "\n\e[1;38m Instructions for generating TipTap Pro Extensions Auth Token \e[0m \n"
|
|
|
|
echo -e "\e[1;38m 1. Head over to TipTap cloud's Pro Extensions Page, https://collab.tiptap.dev/pro-extensions \e[0m"
|
|
echo -e "\e[1;38m 2. Copy the token given to you under the first paragraph, after 'Here it is' \e[0m \n"
|
|
|
|
read -p $'\e[1;32m Please Enter Your TipTap Pro Extensions Authentication Token: \e[0m \e[1;36m' authToken
|
|
|
|
|
|
echo "@tiptap-pro:registry=https://registry.tiptap.dev/
|
|
//registry.tiptap.dev/:_authToken=${authToken}" > .npmrc
|
|
|