groupbwt / scrapy-boilerplate

Scrapy project boilerplate done right
MIT License
42 stars 25 forks source link

deploy.sh stops all pm2 processes when no $3 is set #90

Closed dmkovtun closed 2 years ago

dmkovtun commented 2 years ago

Missed to set PREFIX value in gitlab variables and auto-deploy script deleted all pm2 processes on the server.

There should be some kind of condition to verify whether $3 has value and only then delete processes. https://github.com/groupbwt/scrapy-boilerplate/blob/082085990455c7102eb822f6240a30d21e8809ea/deploy.sh#L42

AntonGsv commented 2 years ago

Добавил проверку в deploy.py.