Errors after rebranding from GamerHub to SaaSight:
boardgames.db
) kept getting recreatedboardgames.db
. Then app crashed.Updated config.py
→ Changed:
'sqlite:///' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'boardgames.db')
to:
'sqlite:///' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'saasight.db')
Pushed changes → pipeline now uses correct DB name.
SourceArtifact → BuildArtifact → Deploy
chain is correct.OutputArtifact: BuildArtifact
in Build Stage./home/ec2-user/
in install script to remove stale files.systemctl status saasight
showed No such file or directory
for Gunicorn path.venv/bin/gunicorn
path properly.saasight.service
with valid Gunicorn path in ExecStart
.base.html
)curl localhost:8000
returned old templates despite new commits.Validated CodeDeploy archive via:
find /opt/codedeploy-agent/deployment-root -name base.html
Ensured install_dependencies.sh
pulls latest from newest deployment-archive
using:
find ... | sort | tail -1
Cleaned all relevant folders before copying.