I have connected AWS to github
appspec.yml
version: 0.0
os: linux
files:
- source: /
destination: /home/mybot
hooks:
AfterInstall:
- location: RunMyBot.sh
timeout: 300
runas: root
RunMyBot.sh
#!bin/bash
cd /home/mybot/
yum install -y python3-pip python3 python3-setuptools
sudo python3 -m pip install --user --upgrade pip
pip3 install -r requirements.txt
python botMain.py
Error:
I want to run my main file - botMain.py, but it doesn't run.
I tried removing the install lines from script coz it said they were already installed, but still I was getting a timeout and my botMain.py was not running.