File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
onCreate :
2
2
- sudo apt-get update -y
3
3
- 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
7
4
- |
8
5
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
9
6
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
@@ -13,12 +10,15 @@ onCreate:
13
10
sudo -u postgres psql postgres -c "ALTER USER postgres PASSWORD 'root'"
14
11
sudo -u postgres psql postgres -c "CREATE DATABASE bottlecrm WITH OWNER = postgres"
15
12
- |
16
- mkvirtualenv bottlecrm
13
+ virtualenv -p python3 ../venv
14
+ . ../venv/bin/activate
17
15
cp ENV.md .env
18
16
pip install -U pip
19
17
pip install -r requirements.txt
20
18
python manage.py migrate
21
19
onStart :
22
20
- |
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"
24
24
python manage.py runserver
Original file line number Diff line number Diff line change 1
1
# Environment variables
2
2
3
- SECRET_KEY=""
3
+ SECRET_KEY="mco934$@)NHUYTC%6789 "
4
4
ENV_TYPE="dev"
5
5
DOMAIN_NAME=""
6
6
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ python-dotenv==0.21.0
4
4
django-cors-headers == 3.13.0
5
5
djangorestframework == 3.14.0
6
6
djangorestframework-simplejwt == 5.2.0
7
- drf-yasg == 1.21.3
7
+ drf-yasg == 1.21.4
8
8
django-ses == 3.1.2
9
9
psycopg2-binary == 2.9.3
10
10
whitenoise == 6.2.0
You can’t perform that action at this time.
0 commit comments