Skip to content

Instantly share code, notes, and snippets.

@alexleventer
Last active August 29, 2015 14:21
Show Gist options
  • Save alexleventer/90b86f56226b16f673ef to your computer and use it in GitHub Desktop.
Save alexleventer/90b86f56226b16f673ef to your computer and use it in GitHub Desktop.
Ruby CentOS Distelli Manifest
<username>/RubyCentOSSimpleApp:
# This Basic Distelli Manifest assumes the following
# has been provisioned on the destination deploy server:
#
# OS: CentOS
#
Env:
- PORT: 8003
- STAGE: production
PreInstall:
- gem install bundle
Exec:
- source ~/.rvm/scripts/rvm
- rvm use 1.9.3
- exec ./bundle/bin/thin start -p $PORT -e $STAGE
PostInstall:
- source ~/.rvm/scripts/rvm
- rvm use 1.9.3
- bundle install --binstubs $DISTELLI_APPHOME/bundle/bin --standalone --path $DISTELLI_APPHOME/bundle/lib
PkgInclude:
- lib/simplerubyapp/*.rb
- Gemfile
- config.ru
- SimpleRubyApp.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment