Skip to content

Commit c70618f

Browse files
authored
Merge pull request #22 from astronomersiva/master
Add inpycon2019 and make it the default
2 parents 143b3c5 + 8c20675 commit c70618f

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
location ~ ^/2018/(.*)$ {
22
alias /opt/inpycon2018/$1;
33
}
4-
5-
location = / {
6-
rewrite "^.*$" /2018/ redirect;
7-
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
location ~ ^/2019/(.*)$ {
2+
alias /opt/inpycon2019/$1;
3+
}
4+
5+
location = / {
6+
rewrite "^.*$" /2019/ redirect;
7+
}

salt/roots/inpycon/init.sls

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ https://github.com/pythonindia/inpycon2018.git:
2323
- rev: master
2424
- target: /opt/inpycon2018
2525

26+
https://github.com/pythonindia/inpycon2019.git:
27+
git.latest:
28+
- rev: master
29+
- target: /opt/inpycon2019
30+
2631
https://github.com/pythonindia/pyconindia-archive.git:
2732
git.latest:
2833
- rev: 72613218a3ad7123da3804e3df0c19f01c0a684b
@@ -74,6 +79,12 @@ nginx_inpycon_dir:
7479
- require:
7580
- file: nginx_inpycon_dir
7681

82+
/etc/nginx/sites-available/in.pycon.org/pycon2019.conf:
83+
file.managed:
84+
- source: salt://inpycon/in.pycon2019.conf
85+
- require:
86+
- file: nginx_inpycon_dir
87+
7788
/etc/nginx/sites-available/in.pycon.org/old-pycon.conf:
7889
file.managed:
7990
- source: salt://inpycon/old-pycon.conf

0 commit comments

Comments
 (0)