Skip to content

test #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 117 commits into
base: main
Choose a base branch
from
Open

test #209

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
18b49ac
Add files via upload
LCPGMPA Sep 27, 2024
bc91f53
Update package.json
LCPGMPA Sep 27, 2024
0a4a470
Add files via upload
LCPGMPA Sep 27, 2024
089b3a9
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
f5b0f6a
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
5148008
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
f196c68
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
f4b563f
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
bc4cc73
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
6d3150f
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
f952416
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
87e0225
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
487b583
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
49d339a
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
1eb9d4a
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
8050713
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
25dd57c
Create start.sh
LCPGMPA Sep 27, 2024
15dd3e7
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
c9c8316
Update start.sh
LCPGMPA Sep 27, 2024
c9bd3de
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
2e7f1eb
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
874db9b
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
f7435a6
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
3d3e84b
Update package.json
LCPGMPA Sep 27, 2024
49ceec2
Update heroku.yml
LCPGMPA Sep 27, 2024
1f81242
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
603e7f2
Update heroku.yml
LCPGMPA Sep 27, 2024
b893beb
Update heroku.yml
LCPGMPA Sep 27, 2024
236a2d9
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
ef53d3b
Update Dockerfile.heroku
LCPGMPA Sep 27, 2024
38608ca
Update heroku.yml
LCPGMPA Sep 27, 2024
9df47a1
Update heroku.yml
LCPGMPA Sep 27, 2024
7262e4e
Update heroku.yml
LCPGMPA Sep 27, 2024
b79c6cd
Update heroku.yml
LCPGMPA Sep 27, 2024
ae12541
Update heroku.yml
LCPGMPA Sep 28, 2024
de51d97
Create runtime.txt
LCPGMPA Sep 28, 2024
7a93596
Update Dockerfile.heroku
LCPGMPA Sep 28, 2024
b79ffbe
Update app.py
LCPGMPA Sep 28, 2024
24d40d9
Update app.py
LCPGMPA Sep 28, 2024
ae69c9b
Update app.py
LCPGMPA Sep 28, 2024
a7ee5da
Delete app.py
LCPGMPA Sep 28, 2024
3193991
Add files via upload
LCPGMPA Sep 28, 2024
cfde6a7
Update app.py
LCPGMPA Sep 30, 2024
b99be43
Update app.py
LCPGMPA Sep 30, 2024
19c5393
Delete app.py
LCPGMPA Oct 1, 2024
22c1d43
Add files via upload
LCPGMPA Oct 1, 2024
a855500
Update app.py
LCPGMPA Oct 1, 2024
ac216e4
Delete app.py
LCPGMPA Oct 1, 2024
f80a1e0
Add files via upload
LCPGMPA Oct 1, 2024
ab8890c
Update app.py
LCPGMPA Oct 1, 2024
d3b2faf
Update app.py
LCPGMPA Oct 2, 2024
290dafc
Update app.py
LCPGMPA Oct 2, 2024
75a979c
Delete app.py
LCPGMPA Oct 2, 2024
f9146b3
Add files via upload
LCPGMPA Oct 2, 2024
da5e20e
Add files via upload
LCPGMPA Oct 4, 2024
ccc6261
Delete _IGNORE_session.zip
LCPGMPA Oct 4, 2024
cca7158
'git'
Heineken-H41 Oct 4, 2024
c2c7aaa
Add files via upload
LCPGMPA Oct 4, 2024
5a6c7a1
yeet
Heineken-H41 Oct 8, 2024
df92af0
Merge branch 'main' of https://github.com/LCPGMPA/wa-automate-deploy-…
Heineken-H41 Oct 8, 2024
5949b25
Create session.data.json
LCPGMPA Oct 8, 2024
3bfec41
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
599c6d7
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
2c8f18a
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
99fe840
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
110dae1
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
90c2a9b
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
7b4a9b4
Delete session.data.json
LCPGMPA Oct 8, 2024
f562ae7
Create test.txt
LCPGMPA Oct 8, 2024
a6b6b78
Delete sessions/_IGNORE_session directory
LCPGMPA Oct 8, 2024
ba35fbc
test
Heineken-H41 Oct 8, 2024
022b3dc
fff
Heineken-H41 Oct 8, 2024
41815e0
Add files via upload
LCPGMPA Oct 8, 2024
4395d88
Update Dockerfile.heroku
LCPGMPA Oct 8, 2024
3f1e23d
Update .gitignore
LCPGMPA Oct 8, 2024
03e429a
new folder
Heineken-H41 Oct 9, 2024
7844a56
test
Heineken-H41 Oct 9, 2024
97750d8
Merge branch 'main" of https://github.com/LCPGMPA/wa-automate-deploy-…
Heineken-H41 Oct 9, 2024
634b658
Update Dockerfile.heroku
LCPGMPA Oct 9, 2024
7196439
yeetus
Heineken-H41 Oct 11, 2024
5766f3d
Merge branch 'main' of https://github.com/LCPGMPA/wa-automate-deploy-…
Heineken-H41 Oct 11, 2024
50cee70
Update app.py
LCPGMPA Oct 14, 2024
fdf9526
Update app.py
LCPGMPA Oct 14, 2024
380775b
Update Dockerfile.heroku
LCPGMPA Oct 14, 2024
076ae2f
Delete test/_IGNORE_session directory
LCPGMPA Oct 14, 2024
6d6cc5e
Delete open-wa-session.sw_col.json
LCPGMPA Oct 14, 2024
e8f9e1d
Update Dockerfile.heroku
LCPGMPA Oct 14, 2024
ad8319a
Update Dockerfile.heroku
LCPGMPA Oct 14, 2024
f26ecc0
Update Dockerfile.heroku
LCPGMPA Oct 14, 2024
521f4d0
Create swap_setup.sh
LCPGMPA Oct 14, 2024
a472e9b
Update heroku.yml
LCPGMPA Oct 14, 2024
85beb9c
Update heroku.yml
LCPGMPA Oct 14, 2024
5595917
Update heroku.yml
LCPGMPA Oct 14, 2024
dc90b00
Update Dockerfile.heroku
LCPGMPA Oct 14, 2024
bde8f03
Update Dockerfile.heroku
LCPGMPA Oct 14, 2024
17abde1
Update heroku.yml
LCPGMPA Oct 14, 2024
ea83e4d
Update app.py
LCPGMPA Oct 15, 2024
f9cd066
Update heroku.yml
LCPGMPA Oct 15, 2024
ccd64a5
Update heroku.yml
LCPGMPA Oct 15, 2024
8cd81cb
Update heroku.yml
LCPGMPA Oct 15, 2024
e285d96
Update heroku.yml
LCPGMPA Oct 15, 2024
ed3c0d1
Update heroku.yml
LCPGMPA Oct 15, 2024
25bb488
Update heroku.yml
LCPGMPA Oct 15, 2024
1ae082c
Update heroku.yml
LCPGMPA Oct 15, 2024
3fa8944
Update heroku.yml
LCPGMPA Oct 15, 2024
b4bf54a
Update heroku.yml
LCPGMPA Oct 15, 2024
c02554c
Update heroku.yml
LCPGMPA Oct 16, 2024
8a6712f
Update app.py
LCPGMPA Oct 16, 2024
3bd054d
Update app.py
LCPGMPA Oct 17, 2024
3da223c
Update app.py
LCPGMPA Oct 17, 2024
949ef39
Update app.py
LCPGMPA Oct 18, 2024
3498213
Update app.py
LCPGMPA Oct 18, 2024
2c2aec3
Update app.py
LCPGMPA Oct 19, 2024
50b4860
Delete app.py
LCPGMPA Oct 19, 2024
563590b
Add files via upload
LCPGMPA Oct 19, 2024
9f29d50
Update app.py
LCPGMPA Oct 19, 2024
b51d6f2
Update app.py
LCPGMPA Oct 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
sessions/_IGNORE_session/

# TypeScript v1 declaration files
typings/
# TypeScript cache
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile.heroku
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
FROM openwa/wa-automate

# Switch to root user to install Python and pip
USER root

# Install Python and pip
RUN apt-get update && apt-get install -y python3 python3-pip

# Copy your requirements.txt into the container
COPY requirements.txt /app/requirements.txt

# Install the Python dependencies
RUN pip3 install --no-cache-dir -r /app/requirements.txt

COPY app.py /usr/src/app/


# Switch back to the default user
USER node


ENTRYPOINT []
945 changes: 945 additions & 0 deletions app.py

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ build:
docker:
web: Dockerfile.heroku
run:
web: PORT=$PORT WA_PORT=$PORT node ./node_modules/@open-wa/wa-automate/bin/server.js --use-chrome --force-port=$PORT --in-docker --qr-timeout 0 --popup --multi-device --debug --verbose --disable-spins --ezqr
web: PORT=$PORT WA_PORT=$PORT node ./node_modules/@open-wa/wa-automate/bin/server.js --force-port=$PORT --in-docker --qr-timeout 0 --popup --multi-device --debug --verbose --disable-spins --ezqr --aggressive-garbage-collection --max-chats 15 --max-messages 200 --disable-gpu --disable-cache --disable-application-cache
worker:
command:
- python3 app.py
image: web
69 changes: 69 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
aiohappyeyeballs==2.3.5
aiohttp==3.10.3
aiohttp-retry==2.8.3
aiosignal==1.3.1
APScheduler==3.10.4
attrs==24.2.0
bidict==0.23.1
blinker==1.8.2
cachetools==5.4.0
certifi==2024.7.4
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
dnspython==2.6.1
et-xmlfile==1.1.0
eventlet==0.37.0
Flask==3.0.3
frozenlist==1.4.1
google-api-core==2.19.1
google-api-python-client==2.141.0
google-auth==2.33.0
google-auth-httplib2==0.2.0
google-auth-oauthlib==1.2.1
googleapis-common-protos==1.63.2
greenlet==3.1.1
gspread==6.1.2
gunicorn==23.0.0
h11==0.14.0
httplib2==0.22.0
idna==3.7
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==2.1.5
multidict==6.0.5
numpy==2.0.1
oauth2client==4.1.3
oauthlib==3.2.2
openpyxl==3.1.5
packaging==24.1
pandas==2.2.2
proto-plus==1.24.0
protobuf==5.27.3
pyasn1==0.6.0
pyasn1_modules==0.4.0
PyDrive==1.3.1
PyJWT==2.9.0
pymongo==4.8.0
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-engineio==4.9.1
python-socketio==5.11.4
pytz==2024.1
PyYAML==6.0.2
requests==2.32.3
requests-oauthlib==2.0.0
rsa==4.9
simple-websocket==1.0.0
six==1.16.0
tzdata==2024.1
tzlocal==5.2
uritemplate==4.1.1
urllib3==2.2.2
wa-automate-socket-client==1.2.0
websocket-client==1.8.0
websockets==13.1
Werkzeug==3.0.3
wsproto==1.2.0
xlwings==0.32.0
yarl==1.9.4
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.12.6
1 change: 1 addition & 0 deletions session.data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e30=
7 changes: 7 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# Start the wa-automate server
npx @open-wa/wa-automate --disable-spins --port $PORT --popup --in-docker --qr-timeout 0 --keep-alive --keep-updated --executable-path='/app/.apt/usr/bin/google-chrome' &

# Start the Python app
python3 app.py
16 changes: 16 additions & 0 deletions swap_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Create a 1 GB swap file if it doesn't already exist
if [ ! -f /swapfile ]; then
echo "Creating swap file..."
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
fi

# Try to activate the swap file
echo "Activating swap file..."
swapon /swapfile || echo "Warning: Unable to activate swap."

# Display swap status (for debugging)
free -h