Skip to content

Commit 0403978

Browse files
committed
new release
1 parent c3ddaab commit 0403978

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.runcode.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
onCreate:
22
- sudo apt-get update -y
33
- sudo apt install python-is-python3 xvfb libfontconfig wkhtmltopdf libpq-dev python3-dev python3-pip build-essential libssl-dev libffi-dev python3-venv redis-server redis-tools virtualenv zsh python3-virtualenv -y
4-
- sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
5-
- pip install virtualenvwrapper
6-
- echo "source /home/ubuntu/.local/bin/virtualenvwrapper.sh" >> ~/.zshrc && source ~/.zshrc
74
- |
85
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
96
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
@@ -13,12 +10,15 @@ onCreate:
1310
sudo -u postgres psql postgres -c "ALTER USER postgres PASSWORD 'root'"
1411
sudo -u postgres psql postgres -c "CREATE DATABASE bottlecrm WITH OWNER = postgres"
1512
- |
16-
mkvirtualenv bottlecrm
13+
virtualenv -p python3 ../venv
14+
. ../venv/bin/activate
1715
cp ENV.md .env
1816
pip install -U pip
1917
pip install -r requirements.txt
2018
python manage.py migrate
2119
onStart:
2220
- |
23-
workon bottlecrm
21+
. ../venv/bin/activate
22+
WS_DOMAIN=`cat /home/ubuntu/runcode/ws-url-domain.txt`
23+
printf "\nGO TO THIS URL TO VIEW PAGE \033[4;34m https://8000-${WS_DOMAIN}\033[0;30m\n\n"
2424
python manage.py runserver

ENV.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Environment variables
22

3-
SECRET_KEY=""
3+
SECRET_KEY="mco934$@)NHUYTC%6789"
44
ENV_TYPE="dev"
55
DOMAIN_NAME=""
66

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python-dotenv==0.21.0
44
django-cors-headers==3.13.0
55
djangorestframework==3.14.0
66
djangorestframework-simplejwt==5.2.0
7-
drf-yasg==1.21.3
7+
drf-yasg==1.21.4
88
django-ses==3.1.2
99
psycopg2-binary==2.9.3
1010
whitenoise==6.2.0

0 commit comments

Comments
 (0)