rails-app moved to examples folder

This commit is contained in:
Siva M 2019-10-02 22:49:58 -04:00
parent 0fc1236266
commit e68bdffa25
120 changed files with 8 additions and 282 deletions

10
demo
View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/bash
if [ "$1" == "start" ]; then if [ "$1" == "start" ]; then
echo "Downloading pre-built docker images" 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" 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 examples/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 up
elif [ "$1" == "stop" ]; then elif [ "$1" == "stop" ]; then
docker-compose -f rails-app/demo.yml down docker-compose -f examples/rails-app/demo.yml down
else else
echo "./demo [start|stop]" echo "./demo [start|stop]"
fi fi

View File

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

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