Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
28 lines (21 loc) · 873 Bytes

File metadata and controls

28 lines (21 loc) · 873 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# For now, we use this script to start our staging preview on render
# by changing the ENTRYPOINT and CMD at the dockerfile to this.
# example usages:
# ./staging.sh
# ./staging.sh https://example.com
# ./staging.sh https://example.com:8080
# If no parameter is passed, use https://staging.bytebase.com as host and 80 as port by default
ONLINE_DEMO_HOST='https://staging.bytebase.com'
ONLINE_DEMO_PORT='80'
if [ $1 ]; then
PROTOCAL=`echo $1 | awk -F ':' '{ print $1 }'`
URI=`echo $1 | awk -F '[/:]' '{ print $4; }'`
PORT=`echo $1 | awk -F '[/:]' '{ print $5; }'`
ONLINE_DEMO_HOST=$PROTOCAL://$URI
if [ $PORT ]; then
ONLINE_DEMO_PORT=$PORT
fi
fi
echo "Starting Bytebase in demo mode at ${ONLINE_DEMO_HOST}:${ONLINE_DEMO_PORT}..."
bytebase --host ${ONLINE_DEMO_HOST} --port ${ONLINE_DEMO_PORT} --demo --data /var/opt/bytebase
Morty Proxy This is a proxified and sanitized view of the page, visit original site.