Skip to content

nathandunn/nemo2

Repository files navigation

Database setup:

http://hartsock.blogspot.com/2008/07/postgresql-and-grails.html

Conversely can use "trust" instead. 

sudo su - postgres 
createdb nemo_dev 
psql 
create user ndunn superuser


STAGING
grails -Dgrails.env=staging war 

else

grails war 


Other directions:

1 - install grails 
2 - install postgresql (above)
3 - run recover.sh and make_production.sh scripts in the script directory  (or do manually (may need to ) 
4 - create dummy certificate: https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-a
pache-for-ubuntu-12-04

- OR -

4 - download certificate: ??

5 - integrate with tomcat using mod_proxy:
- enable mod proxy  ( on apache 2.2 / Ubutnut 12 sudo a2enmod) 
http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html#Apache_2.0_Proxy_Support
- should be no changes on the tomcat end  Config.groovy has the server set to https://

apache changes:
- add rewrite rule to "sites-enabled/000-default": 
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/nemo/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

- add proxy rule to "mods-enabled/proxy.conf": 

ProxyRequests Off
<Proxy *>
  #AddDefaultCharset off
  Order deny,allow
      Deny from all
          Allow from localhost
          </Proxy>

          ProxyPass /nemo/static http://cas-vm-nemo.uoregon.edu:8080/nemo/static
          ProxyPassReverse /nemo/static http://cas-vm-nemo.uoregon.edu:8080/nemo/static

          ProxyPass /nemo http://cas-vm-nemo.uoregon.edu:8080/nemo
          ProxyPassReverse /nemo http://cas-vm-nemo.uoregon.edu:8080/nemo

          <Location />
          Order allow,deny
          Allow from all 
          </Location>


          - update server info in "sites-enabled/default-ssl" by adding : 

          ServerName cas-vm-nemo.uoregon.edu:443

          (and updating the cert files) 

SLCertificateFile    /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key



About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published