Skip to content

ariofrio/goatee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goatee

Goatee is a web interface to Gmsh.

Deployment

  1. Sign up for Amazon EC2.
  1. Start an Ubuntu 12.04 instance with the following User Data:

    #!/bin/bash
    set -ex
    
    function first-setup() {
      apt-get update
      apt-get install --yes git npm nodejs-legacy rubygems gmsh
      gem install foreman
      npm install -g coffee-script
    
      cd /home/ubuntu
      sudo -u ubuntu git clone --bare \
        git://github.com/ariofrio/goatee.git
    }
    
    function start() {
      cd /home/ubuntu/goatee.git
      sudo -u ubuntu wget -O hooks/post-receive \
        https://gist.github.com/ariofrio/3178891/raw/post-receive
      chmod +x hooks/post-receive
      sudo -Hu ubuntu hooks/post-receive
    }
    
    if [ ! -d /home/ubuntu/goatee.git ]; then
      first-setup &>> /var/log/goatee-setup.log
    fi
    start &>> /var/log/goatee-setup.log
    

    If you haven't yet, create a new Key Pair and download it. You will need it to access the instance if it fails, and to update its software.

    Finally, if you haven't yet, you'll need to create a new Security Group: add an SSH rule and an HTTP rule.

    After 5 minutes, open the app by visiting the Public DNS or a Public IP.

Debugging

The setup script logs to /var/log/goatee-setup.log. The app logs to /tmp/goatee-PORT-XXXXXX.log.

About

A web frontend to Gmsh, a 3d mesh generator, using EC2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published