Tuesday, August 18, 2020

My Experience with editing a code running on production server

 welcome again to my ted talk .....

is it not just one line of code ?

So i wrote this code from scratch and all was working well 

the clients asked for a lot of changes fro me .... some of which sounded like making the titanic ship ply and making Aeroplanes dive into water like submarines.....lol


As expected....Your Main Boy gave them gave them all they wanted and deployed the application to the server.....

Boss came into the picture and said that no ooo, that he wanted docker for the deployment

and i was like 

Upset Frown GIF - Upset Frown HandOver GIFs

Please deploy it with your docker and don't stress my life

is it not the same docker that i tried finished my 30GB last month ???

Shoir....cant be me again....

they say what?  once beaten 100 times shy.....

He deployed the application and faced some bugs.....while i was enjoying my suya and team soda in the midnight , while listening to some bible verses from Rick Ross

Next day i noticed something wasnt working right and i needed to add a line of code to the codebase 

Me : is it not one line of code ?  why would i create a merge request for one line

My Brain :  just create a merge request .... so you wont stress yourself

Me : shut up joor ..... what were you doing when i didnt add the line of code....isnt that your job ?

***so i continued like a pro chanpion***

>>> ssh root@1234566

[root@123456] >>> cd lmaoo

.......


*skips boring things*

i went into the codebase and added the line of code with nano 

>>> nano views.py

**after editing like a professional**

I ran the run command again like a pro

went back to the live url and 

Frustrated GIF - Error Angry Rage GIFs  Error GIF - Error GIFs Error Fail GIF - Error Fail Microsoft GIFs


i Wanted to debug and continue reverting changes but in case another thing goan break in this docker nko

i shamelessly called my boss and told him .....

he just laughed and explaied the docker stuff .....

it wasnt that complex at all


all these tutorials people just wanted to take my data because i got their courses for free

moral of the story

Dont Edit Production Code ....

Pull and listen to your brain.....thats if its working shaa

Bye Bye (in teletubbies voice)

Monday, August 10, 2020

The Part of love that no one talks about

 welcome to my ted talk again....  :)


So what do yall think this heading means.....can you guess?

Tuesday, October 29, 2019

Handling staticfiles and user media files in Django

Media files can be a real pain in the back to new django developers as everything seems weird

Deployment of a Django webapp with heroku with Google cloud

Hehehe......
4 days ago i decided to switch from Pythonanywhere to a more robust linux server like heroku.

This was the process i took

My Experience with editing a code running on production server

 welcome again to my ted talk ..... is it not just one line of code ? So i wrote this code from scratch and all was working well  the client...