-
Make sure nginx-proxy is working (https://github.com/jwilder/nginx-proxy)
-
Adding hosts
Add a few lines in file /etc/hosts:
127.0.0.1 eatbot.loc
-
Start project
console# docker-compose up
-
Create admin user. Get output "admin@admin.com created successfully"
console# docker/create_superuser.sh (in dev environment only.)
-
Final test
- Check admin with credentials admin@admin.com / 123123 http://eatbot.loc/admin/
- Check API swagger http://eatbot.loc/docs/
- Check home page http://eatbot.loc/
-
To run scrapy parser scrapy crawl food_spider -a id=1 -a do_action=yes scrapy crawl food_spider -a id=2 -a do_action=yes
curl http://127.0.0.1:6800/schedule.json -d project=food_sites -d spider=food_spider