Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have working simple blog. Code here - https://github.com/4doge/askMe
I already have account on pythonanywhere and Flask app. What i need now?
Specifically, what steps should I follow to get the code off github, onto pythonanywhere, and then make the blog site live on the Internet using pythonanywhere's service?
I think these would be the next steps to deploy the app:
open a console: go to pythonanywhere.com, click on Consoles and then on Bash
clone your app
git clone git#github.com:4doge/askMe.git
You go to pythonanywhere.com and click on Web
click on add a new web app. (delete the old one if you have a free plan and do not need the old one)
click through and in the last dialog step you can choose the path to your run.py
Now the app should be running. You can restart it and browse it.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm trying to develop a windows gui app with python and i will distribute that later. I don't know how to set the app for some future releasing updates or bug fix from a server/remotely. How can I handle this problem? Can I add some auto-update future to app? What should write for that in my code and what framework or library should I use?
Do pyinstaller/ inno setup have some futures for this?
Thanks for your help.
How about this approach:
You can use a version control service like github to version control your code.
Then checkout the repository on your windows machine.
Write a batch/bash script to checkout the latest version of your code and restart the app.
Then use the Windows task scheduler to periodically run this script.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
This is a beginner question. I post this here because I'm so lost that I realized I even don't know what to look for.
I'm a C++ developper and have a developed C++ app. On the other hand, I recently dug into web development and created a website using the Django framework, which I host on Heroku.
The flow of the website: a user enters input on the website, input files are uploaded to AWS S3 (I managed to get that working).
The part I'm lost: with the user input, I'd like to run the C++ app which I host on a Linux server (Codenvy). But I have no idea how to launch that application from the Django site which is served by Heroku. At least giving some keywords to enhance my web searches?
It sounds like what you need is to run a script on another server using python?
I'd suggest taking a look at Paramiko:
https://github.com/paramiko/paramiko/
It is a package to allow you to ssh into another machine and execute commands.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am using Django with sqlite, Now my app is on my Github and I have a VPS with CentOS. Please help me how to upload my App from Github to my VPS.
Thank you
If it's on github, all you should need to is git clone the repo to your vps, and install django, just as you would start any django project.
If you want to do a production deploy on a CentOS server have a look at this guide: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-centos-7 and look out for your SELinux settings, and your security in general.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I want to create a telegram bot using telepot api. I can run locally this example. What's the easiest and quickest way to make it running somewhere in the web to have my bot working 24/7?
UPD:
The easiest way for me is pythonanywhere:
1. Upload script
2. install dependencies using regular "pip install package_name" from bash console.
3. run script from bash using "python script.py"
4. That's it
There is a bunch of cloud hostings with free plans with python support:
Heroku
Google App Engine
Openshift
Pythonanywhere
etc
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
it's my first question here so i'll try to be clear :)
I want to execute a python script on a server (I use pythonanywhere), this script is took from spawningtool. I succeed on the install and I'm able do execute it in a shell on the user interface.
The problem is that I want to execute it when a client ask ^^, here a classic situation :
The client send a file to the server
The server execute the script with the file in parameter
The server answer with a string
How can I do that ? (Does it have a link with Django,Bottle etc . . . ?)
PS : Python stuff is new for me so take in consideration that I'm a mobile dev with very few notion of python and web dev.
You're definitely going to have to learn a lot about web development to make that happen. Have a look at tutorials for Django, Flask or Bottle. Get an idea of how the web works and then apply it to your problem.