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.
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 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 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.
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 9 years ago.
Improve this question
I am trying to build a REST API web service using Python Eve. I have experience in using Lithium (PHP framework) and Ruby on Rails but I am struggling to figure out the proper folder structure to use with Python Eve. Any suggestion on where to put my models and controllers (mostly pre / post hooks).
Have you looked at the Eve demo source code? Should be enough to get you started. Hooks can then be added to the run.py script, see the documentation. A more complex application (not so much at this point in time) is Adam, still a work in progress though.