Wednesday, July 27, 2016

Re: Installation

On Wed, Jul 27, 2016 at 10:16 AM, Its Eternity <itseternityuhc@gmail.com> wrote:
> Hey, a friend recently wrote my a web-app for me to use however I am not
> sure how I deploy the web app onto my VPS. I've looked at the tutorials on
> Django but it says that I can only use it for development. Is there a

Hi,

I created a Python image a while ago for Scaleway, a cloud computing
provider (https://www.scaleway.com/). To host a Django application on
Scaleway using this image, you need to:
* create an account
* start a new server, click on "choose image", use the "imagehub" tab
and select the "Python" image
* start the server and ssh into it

The /root/README.txt file explains how to create a Django application:

$> pip install django
$> cd /var/www
$> django-admin startproject my_django_project
$> ln -s /etc/nginx/sites-available/my_website /etc/nginx/sites-enabled/
$> ln -s /etc/uwsgi/apps-available/my_django_project.ini
/etc/uwsgi/apps-enabled/
$> service uwsgi restart
$> service nginx restart

More details on the image's github:
https://github.com/scaleway-community/scaleway-python/tree/master/overlay

Disclaimer: I work at Scaleway

Regards,
--
Julien Castets
+33 (0)6.85.20.10.03

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADF714bp8M0binr_75dQh%2Bjhu-rwuXvtPqfz8LWvHZyyoyGXYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment