Skip to content

Commit

Permalink
test war for http
Browse files Browse the repository at this point in the history
  • Loading branch information
sriv committed Aug 3, 2017
1 parent 6f919a3 commit e6eae73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ rvm:
sudo: required
dist: trusty
install:
- bundle install
- bundle install --path vendor/bundle
script:
- RACK_ENV=production bundle exec rake war
- nohup java -jar activeadmin-demo.war >/dev/null 2>&1 &
- sleep 30
- [[ `curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://localhost:8080` == 200 ]] && echo "HTTP OK" || echo "HTTP failed" && exit -1
before_deploy:
- export RELEASE_WAR_FILE=$(ls activeadmin-demo.war)
- echo "deploying $RELEASE_WAR_FILE to GitHub releases"
Expand Down
2 changes: 1 addition & 1 deletion config/warble.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# - gemjar: package the gem repository in a jar file in WEB-INF/lib
# - executable: embed a web server and make the war executable
# - compiled: compile .rb files to .class files
config.features = %w(gemjar compiled executable)
config.features = %w(gemjar executable)

# Application directories to be included in the webapp.
# config.dirs = %w(app config db lib log script vendor tmp public)
Expand Down

0 comments on commit e6eae73

Please sign in to comment.