How do I deploy my OWN Django app on Linode One click Service?
Hi,
I've used the Linode One Click app service to deploy a django app. I selected Django from the list of apps in the Marketplace and entered the required details to deploy the app. After clicking Create, the app deployed the basic Django app from the Django project website.
However, I can't seem to see at which stage do I upload my OWN Django project from my personal Github or local machine?
I'm sure its obvious to anyone reading this but please do tell! :)
Thanks
Sharif
2 Replies
Hi Sharif,
I don’t know specifically about Django, but I’d guess it would be fairly similar to Wordpress, which I am familiar with.
As you’ve found, the OCAs will deploy a clean app, so you would just need to overwrite this with your own app.
Typically this will involve the application files and a database (presumably MySQL.)
You would need to connect to your Linode using SSH/SFTP and locate the app files (/var/www/html or /usr/share/html is a good place to start.)
Upload your own copy of Django over the files.
You can also use the MySQL utilities (‘mysql’ command) to connect to the MySQL instance and restore your app’s own database.
Depending on the app you may need to adjust the web server configuration to suit - check out /etc/apache2, /etc/httpd or /etc/nginx - depending on the OS and web server being used.
Hi Sharif,
You would need to connect to your Linode using SSH/SFTP and locate the app files in /var/wwww/DjangoApp. You can then replace the files there with you own Django files.