Fix starting issues

This commit is contained in:
Eugene Burmakin 2022-04-07 20:45:38 +04:00
parent 0722e2d991
commit fb138b9f9a
6 changed files with 12 additions and 5 deletions

View file

@ -25,3 +25,6 @@ group :test do
gem 'shoulda-matchers', '~> 5.1'
end
group :development do
gem 'foreman'
end

View file

@ -6,12 +6,16 @@ setup_backend: bundle
setup:
make bundle
make setup_frontend
make setup_db
bundle:
docker-compose run --rm solo_customer_template_app gem install bundler --conservative
docker-compose run --rm solo_customer_template_app bundle install
setup_frontend:
npm i daisyui
setup_db:
docker-compose run --rm solo_customer_template_app rails db:create db:migrate db:seed
@ -24,7 +28,7 @@ rollback:
# Debugging the project
bash:
docker-compose run --rm solo_customer_template_app bash
docker-compose run --rm solo_customer_template_app sh
console:
docker-compose run --rm solo_customer_template_app bundle exec rails c

View file

@ -1,2 +1,2 @@
web: bin/rails server -p 3000
web: bin/rails server -p 3000 -b 0.0.0.0
css: bin/rails tailwindcss:watch

View file

@ -4,7 +4,7 @@
</div>
<div class="flex-none">
<ul class="menu menu-horizontal p-0">
<li><%= link_to 'Link0', profis_path %></li>
<li><%= link_to 'Link0', '#' %></li>
<% if user_signed_in? %>
<li tabindex="0">
<a>

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
if ! command -v foreman &> /dev/null
then

View file

@ -46,7 +46,7 @@ services:
tty: true
env_file: .env.development
entrypoint: dev-entrypoint.sh
command: ['rails', 'server', '-p', '3000', '-b', '0.0.0.0']
command: ['bin/dev']
environment:
RAILS_ENV: development
depends_on: