Browse Source

changed name of resulting nginx config file

master
Holger Frey 7 years ago
parent
commit
b4774d2679
  1. 6
      hooks/post_gen_project.sh
  2. 0
      {{cookiecutter.directory_name}}/moin_{{cookiecutter.directory_name}}

6
hooks/post_gen_project.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/sh
mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/nginx_example_moin_{{cookiecutter.directory_name}}
mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/moin_{{cookiecutter.directory_name}}
mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/{{cookiecutter.directory_name}}.py /var/www/moin/config/{{cookiecutter.directory_name}}.py
chown www-data:www-data /var/www/moin/config/{{cookiecutter.directory_name}}.py
@ -16,7 +16,7 @@ echo "" @@ -16,7 +16,7 @@ echo ""
echo "You'll need to add the following line to /var/www/moin/config/farmconfig.py"
echo ' ("{{cookiecutter.directory_name}}", r"^https?://{{cookiecutter.domain}}(:8080)?/.*")'
echo ""
echo "Please adjust the nginx config"
echo "An example file was created at /etc/nginx/sites-available/nginx_example_moin_{{cookiecutter.directory_name}}"
echo "An nginx config was created at /etc/nginx/sites-available/moin_{{cookiecutter.directory_name}}"
echo "Activate the config by creating a symbolic link in /etc/nginx/sites-enabled/"
echo "Don't forget to restart/reload uwsgi and nginx"
echo ""

0
{{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} → {{cookiecutter.directory_name}}/moin_{{cookiecutter.directory_name}}

Loading…
Cancel
Save