Merge pull request #10 from FourSigma/sm-examples-folder

Move rails-app to examples folder
This commit is contained in:
Vikram Rangnekar 2019-10-05 22:48:13 -04:00 committed by GitHub
commit 450d77ccbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
120 changed files with 8 additions and 282 deletions

12
demo
View File

@ -1,13 +1,13 @@
#!/bin/sh
#!/bin/bash
if [ "$1" == "start" ]; then
echo "Downloading pre-built docker images"
docker-compose -f rails-app/demo.yml pull
docker-compose -f examples/rails-app/demo.yml pull
echo "Setting up and deploying Super Graph and the demo Rails app"
docker-compose -f rails-app/demo.yml run rails_app rake db:create db:migrate db:seed
docker-compose -f rails-app/demo.yml up
docker-compose -f examples/rails-app/demo.yml run rails_app rake db:create db:migrate db:seed
docker-compose -f examples/rails-app/demo.yml up
elif [ "$1" == "stop" ]; then
docker-compose -f rails-app/demo.yml down
docker-compose -f examples/rails-app/demo.yml down
else
echo "./demo [start|stop]"
fi
fi

View File

@ -12,10 +12,10 @@ services:
# - "6379:6379"
rails_app:
build: rails-app/.
build: examples/rails-app/.
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./rails-app:/app
- ./examples/rails-app:/app
- /app/tmp
ports:
- "3000:3000"

Some files were not shown because too many files have changed in this diff Show More