Skip to content

Commit

Permalink
Fix: run production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal committed Jun 26, 2024
1 parent 76b64cf commit 2610936
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ gem 'omniauth-github'
gem 'omniauth-google-oauth2'
gem 'omniauth-keycloak'
gem 'omniauth-orcid'
gem 'omniauth-rails_csrf_protection'

group :staging, :production, :appliance do
# Application performance monitoring
Expand Down
2 changes: 1 addition & 1 deletion bin/ontoportal
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ dev() {
bash_cmd+=" (bundle config unset local.ontologies_api_client) &&"
fi
done
bash_cmd+=" (bundle check || bundle install) && bin/rails db:prepare && bundle exec rails s -b 0.0.0.0 -p 3000"
bash_cmd+=" (bundle check || bundle install) && bin/rails secret && EDITOR='nano' bin/rails credentials:edit && bin/rails db:prepare && bundle exec rails s -b 0.0.0.0 -p 3000"
docker_run_cmd+=" --service-ports dev bash -c \"$bash_cmd\""
echo "$docker_run_cmd"
echo "Run: bundle exec rails s -b 0.0.0.0 -p 3000"
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ services:
#RAILS_MASTER_KEY: TODO
BIOPORTAL_WEB_UI_DATABASE_PASSWORD: root
MEMCACHE_SERVERS: "cache:11211"
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
Expand Down

0 comments on commit 2610936

Please sign in to comment.