Segments (1252) Delete Previous Page 26 of 26 Next All roads A F None All routes A1 A10 A11 A12 A121 A122 A123 A124 A125 A126 A13 A14 A2 A231 A232 A233 A234 A235 A236 A237 A3 A3-1 A342 A343 A344 A345 A4 A4-1 A4-2 A4-4 A4-5 A4-6 A4-7 A5 A5-1 A6 A7 A8 A8 (1) A9 E1 F100 F101 F101-1 F102 F103 F103-1 F104 F105 F106 F107 F108 F109 F110 F111 F112 F113 F114 F115 F116 F117 F118 F118-1 F119 F120 F121 F122 F123 F124 F124-1 F125 F126 F127 F128 F128-1 F128-2 F128-3 F129 F130 F131 F132 F133 F135 F136 F137 F138 F139 F200 F201 F202 F203 F204 F205 F206 F207 F208 F209 F210 F211 F212 F213 F214 F215 F216 F217 F218 F219 F220 F221 F222 F223 F224 F225 F226 F227 F228 F229 F230 F231 F232 F233 F234 F235 F236 F237 F238 F239 F240 F242 F243 F244 F245 F246 F247 F248 F249 F250 F251 F252 F252-1 F253 F254 F255 F255-1 F256 F257 F258 F259 F260 F261 Select state Abia Adamawa Akwa Ibom Anambra Bauchi Bayelsa Benue Borno Cross River Delta Ebonyi Edo Ekiti FCT Gombe Imo Jigawa Kaduna Kano Katsina Kebbi Kogi Kwara Lagos Nasarawa Niger Ogun Ondo Osun Oyo Plateau Rivers Sokoto Taraba Yobe Zamfara ☰ Route Segment code Name State Start name Northings Eastings End name Northings 2 Eastings 2 Distance(km) ✎ F260 F260BOS01 PULKA BORNO - 11.22331 13.78042 - 11.18570 13.91124 16.32 ✎ F261 F261RIS01 PORT HARCOURT RIVERS - 4.84972 7.05275 - 4.95559 7.01924 14.17 Operations Operations RunbookUseful commandsDjango checkspython manage.py check --settings=roads.settings.production python manage.py showmigrations --settings=roads.settings.productionStatic filespython manage.py collectstatic --noinput --settings=roads.settings.production ls -l /home/appleveil/ferma/staticfiles/website/css/style.css curl -I https://cpmsferma.com/static/website/css/style.cssServicessudo systemctl status gunicorn sudo systemctl restart gunicorn sudo systemctl status nginx sudo systemctl reload nginx sudo systemctl status celery sudo systemctl restart celeryLogsjournalctl -u gunicorn -n 200 --no-pager journalctl -u nginx -n 200 --no-pager journalctl -u celery -n 200 --no-pager tail -n 200 /home/appleveil/ferma/django-error.logTroubleshooting matrix1) Styling missing in productionChecks:Page source contains <link href="/static/website/css/style.css">staticfiles/website/css/style.css exists and non-zero size.curl -I returns non-zero content-length.Fixes:collectstaticrestart gunicornreload nginx2) staticfiles.W004 warningMessage: static dir in STATICFILES_DIRS does not exist.Action:ensure settings include only existing static dirs (already implemented in base settings).3) Celery tasks stuckChecks:Redis reachablecelery worker runningtask status endpoint stateActions:restart celeryverify REDIS_URLinspect worker logs for API rate limits/timeouts4) Map data not updatingChecks:segments_map_data endpoint responsesegment coordinates presentbackground refresh completed successfully5) 500 errors from viewsChecks:django-error.logrecent code changes in website/views.pymigrations applied for model changesDatabase operation cautionsAlways back up DB before destructive updates.For production schema changes:deploy coderun migrationsrestart servicesRollback strategy (minimum)keep previous release commit hashrevert to previous codererun collectstaticrestart gunicorn/celeryif migration caused issue, restore DB backup or apply reversible migrationSecurity operation checksEnsure production settings are used in production commands.Confirm HTTPS redirect and HSTS active.Review open endpoints and permission decorators periodically. Uploads Download template Select file (.xls, .xlsx, .csv) Begin Upload Uploading, please wait... Upload summary Download error CSV
Operations RunbookUseful commandsDjango checkspython manage.py check --settings=roads.settings.production python manage.py showmigrations --settings=roads.settings.productionStatic filespython manage.py collectstatic --noinput --settings=roads.settings.production ls -l /home/appleveil/ferma/staticfiles/website/css/style.css curl -I https://cpmsferma.com/static/website/css/style.cssServicessudo systemctl status gunicorn sudo systemctl restart gunicorn sudo systemctl status nginx sudo systemctl reload nginx sudo systemctl status celery sudo systemctl restart celeryLogsjournalctl -u gunicorn -n 200 --no-pager journalctl -u nginx -n 200 --no-pager journalctl -u celery -n 200 --no-pager tail -n 200 /home/appleveil/ferma/django-error.logTroubleshooting matrix1) Styling missing in productionChecks:Page source contains <link href="/static/website/css/style.css">staticfiles/website/css/style.css exists and non-zero size.curl -I returns non-zero content-length.Fixes:collectstaticrestart gunicornreload nginx2) staticfiles.W004 warningMessage: static dir in STATICFILES_DIRS does not exist.Action:ensure settings include only existing static dirs (already implemented in base settings).3) Celery tasks stuckChecks:Redis reachablecelery worker runningtask status endpoint stateActions:restart celeryverify REDIS_URLinspect worker logs for API rate limits/timeouts4) Map data not updatingChecks:segments_map_data endpoint responsesegment coordinates presentbackground refresh completed successfully5) 500 errors from viewsChecks:django-error.logrecent code changes in website/views.pymigrations applied for model changesDatabase operation cautionsAlways back up DB before destructive updates.For production schema changes:deploy coderun migrationsrestart servicesRollback strategy (minimum)keep previous release commit hashrevert to previous codererun collectstaticrestart gunicorn/celeryif migration caused issue, restore DB backup or apply reversible migrationSecurity operation checksEnsure production settings are used in production commands.Confirm HTTPS redirect and HSTS active.Review open endpoints and permission decorators periodically.