-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
73 lines (42 loc) · 1.94 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
That's this?
============
This script configures linux machine to run django projects. You can use it
as template to develop your own installation script.
This script works with debian machine, it uses aptitude to install webserver,
database, python, gcc, virtualenv, pip, etc.
Webserver stack is nginx + uwsgi + django + postgres.
How to use it?
==============
1) Buy VPS. Get root SSH credentials. Setup RSA authorization::
ssh-copy-id root@your-server
2) Upload the script::
scp install.sh root@your-server:/root/
3) Log in to VPS as root
4) Check your /etc/apt/sources.list. It should contain jessie (stable) repository.
To speed up apt operations you may choose debian repo mirror which is close to your
geo location. For example, if your server located in Nederlands country that has
code NL then you can try to replace ftp.us.debian.org (if such string exists in
your config) with ftp.nl.debian.org
Also do not forget to add "contrib non-free" components if they does not exist.
Example of default digitalocean config:
deb http://ftp.nl.debian.org/debian jessie main
deb http://security.debian.org/ jessie/updates
After modification:
deb http://ftp.nl.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
5) Update install.sh script::
* Change INSTALL_* variables
6) Run the script:
$ bash install.sh
During installation you'll need to confirm installation of various software packages (and resolve
issues if any).
That's all. Of course, you can and should adapt script for you taste.
Documentation?
==============
The script is self-documented, being the simple shell script.
Some extra comments in russian could be found here:
* http://habrahabr.ru/blogs/django/120363/
Feedback?
=========
Create ticket on github: http://github.com/lorien/webserver
or drop mail to lorien@lorien.name