Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python and Godaddy
#1
Hello guys,

Basically I've made a program that generates an HTML file based on information in a CSV. This works locally and I'm looking to apply it to my godaddy site and get it to run on a schedule.

The idea is, is that I then automate the import of the reports (CSV's) into the file manager on the site and then this program will run on a schedule so it kind of auto-refreshes/overwrites the old HTML files.

My problem is deploying it. The Godaddy support team members (Yes, multiple) that I spoke to were all less than useless. One said I just needed to put the file in the file manager and it would run automatically after 2 hours.

Just to clarify. The godaddy site is accessed through the cPanel, the python script is written in base python with the CSV module also being used.

Thanks to anybody who can help.

Yours,
Jamie
while dad_has_cigs == True:
    happiness = True
    if dad_has_cigs == False:
    print("Dad come home!")
    happiness = not happiness
    break
Reply
#2
Does GoDaddy allow you to create cron jobs in cPanel?
Reply
#3
Hello,

Yes it does.

Thanks,
James
while dad_has_cigs == True:
    happiness = True
    if dad_has_cigs == False:
    print("Dad come home!")
    happiness = not happiness
    break
Reply
#4
Godaddy with Cpanel is not a Python friendlily host,i would never consider it as a a host when using Python.
One answer.
Quote:Shared hosting solutions tend to limit the software that can run on then.
The last time I used GoDaddy, they had only a php stack, so probably no, you won't be able to use Python there.
But that's fine, you shouldn't! If you plan on using Python, I recommend you to get a Vps, or switch to a cloud service.
Python friendly hosts eg DigitalOcean, Heroku or AWS Lambda.
Example on DigitalOcean you span up Ubuntu 20.04 Server then can eg run cron job it.
If want to display the html files i would use eg Flask.
How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04
Reply
#5
Yep, to be fair the solutions you pointed to are modern and easy to use. I deployed a Python app on Heroku recently, but have used the platform for other languages for years with no issues.
Reply
#6
(Aug-27-2021, 01:29 PM)snippsat Wrote: Godaddy with Cpanel is not a Python friendlily host,i would never consider it as a a host when using Python.
One answer.
Quote:Shared hosting solutions tend to limit the software that can run on then.
The last time I used GoDaddy, they had only a php stack, so probably no, you won't be able to use Python there.
But that's fine, you shouldn't! If you plan on using Python, I recommend you to get a Vps, or switch to a cloud service.
Python friendly hosts eg DigitalOcean, Heroku or AWS Lambda.
Example on DigitalOcean you span up Ubuntu 20.04 Server then can eg run cron job it.
If want to display the html files i would use eg Flask.
How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04

Would you reccommend Guru? I had a chat with their sales team and they've mentioned they are Python (And Ruby) friendly. However they did mention that Flask requires an extra paid feature.
while dad_has_cigs == True:
    happiness = True
    if dad_has_cigs == False:
    print("Dad come home!")
    happiness = not happiness
    break
Reply
#7
Just use Heroku. There's a scheduler for free.
Reply
#8
(Aug-27-2021, 03:27 PM)jamesaarr Wrote: Would you reccommend Guru?
No,it's it's the same category as Godaddy.
(Aug-27-2021, 03:27 PM)jamesaarr Wrote: However they did mention that Flask requires an extra paid feature.
This is just stupid.

So as mention DigitalOcean you have full freedom as you start(spin up a droplet) on eg blank Ubuntu 20.04 Server or distro of your choice.
This mean that you have to do all server setup yourself(good and bad),as shown the have very good tutorials for Python about this.
I have run a Python app and 3 Flask app at same time as a test as can just span new Droplet for each app.
We host this forum on DO.

Heroku python do some server setup for you to make it easier.
Maybe the easiest to get stated with or AWS Lambda(as the do all server setup)

AWS Lambda do all server setup,so can eg write a Lambda functions that serve Python.
Building Lambda functions with Python
For Flask use Zappa - Serverless Python
Reply
#9
I agree that GoDaddy can be frustrating for developers. They do not have support people to help developers. Their emphasis is older and less technical software.

They were in the past slow to provide current versions of PHP.

I was very frustrated because Microsoft Visual Studio Web Deploy would not work and they could not explain why not.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020