FunkFeuer / Graz

Node database based on common-node-db for Funkfeuer Graz
Other
1 stars 0 forks source link

Instruction to initialize the DB creates a vhost template #2

Closed alexlist closed 9 years ago

alexlist commented 9 years ago
nodedb-deploy@nodedb:/srv/nodedb/staging$ python active/www/app/deploy.py create
#!/bin/sh
export PYTHONPATH=/srv/nodedb/staging/active/cndb:/srv/nodedb/staging/active/tapyr
exec /usr/bin/python -O /srv/nodedb/staging/active/www/app/./Command.py fcgi -config 
<VirtualHost *:80>
  ServerName None
  DocumentRoot /home/nodedb-deploy/active/www

  AddDefaultCharset     utf-8
  AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript

  Alias /media/GTW/ /home/nodedb-deploy/active/tapyr/_GTW/media/
  Alias /media/v/   /home/nodedb-deploy/active/www/app/media/v/
  Alias /media/     /home/nodedb-deploy/active/www/media/

  <Directory /home/nodedb-deploy/active/tapyr/_GTW/media>
    Order    deny,allow
    Allow    from all
    FileETag all
  </Directory>

  <Directory /home/nodedb-deploy/active/www/app/media/v>
    Order    deny,allow
    Allow    from all
  </Directory>

  <Directory /home/nodedb-deploy/active/www/app>
    Order    deny,allow
    Deny     from all
  </Directory>

  <Directory /home/nodedb-deploy/active/www/media>
    Order    deny,allow
    Allow    from all
    FileETag all
  </Directory>

  <Directory /home/nodedb-deploy/active/www>
    DirectoryIndex index.html
  </Directory>

    ExpiresActive On
  <FilesMatch "\.(gif|jpe?g|png)$">
    ExpiresDefault "access plus 1 year"
  </FilesMatch>

  <Directory /home/nodedb-deploy/active/tapyr/_GTW/media/js>
    ExpiresActive On
    ExpiresDefault "access plus 1 week"
  </Directory>

  <Directory /home/nodedb-deploy/active/tapyr/_GTW/media/css>
    ExpiresActive On
    ExpiresDefault "access plus 1 week"
  </Directory>

  <Directory /home/nodedb-deploy/active/www/media/v>
    ExpiresActive On
    ExpiresDefault "access plus 1 year"
  </Directory>

  <Directory /home/nodedb-deploy/active/www/media>
    ExpiresActive On
    ExpiresDefault "access plus 1 day"
  </Directory>

  AddHandler fcgid-script .fcgi
  Options    +ExecCGI

  DefaultMaxClassProcessCount 1
  DefaultMinClassProcessCount 0

  ScriptAliasMatch .* None

  CustomLog ${APACHE_LOG_DIR}/None-80-access.log combined
  ErrorLog  ${APACHE_LOG_DIR}/None-80-error.log
  LogLevel  warn

  UseCanonicalName On
</VirtualHost>
tanzer commented 9 years ago

python active/www/app/deploy.py create

The README for FFG and FFW contained the wrong command.

I corrected that to:

python active/www/app/deploy.py app create
aaronkaplan commented 9 years ago

On Mar 17, 2015, at 9:13 AM, Christian Tanzer notifications@github.com wrote:

python active/www/app/deploy.py create

The README for FFG and FFW contained the wrong command.

I corrected that to:

python active/www/app/deploy.py app create

@alexlist: can you please re-test?

Thanks!