Django with application

99 Views Asked by At

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?

1

There are 1 best solutions below

2
On

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.