mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Fix starting issues
This commit is contained in:
parent
0722e2d991
commit
fb138b9f9a
6 changed files with 12 additions and 5 deletions
3
Gemfile
3
Gemfile
|
|
@ -25,3 +25,6 @@ group :test do
|
|||
gem 'shoulda-matchers', '~> 5.1'
|
||||
end
|
||||
|
||||
group :development do
|
||||
gem 'foreman'
|
||||
end
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
2
bin/dev
2
bin/dev
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/sh
|
||||
|
||||
if ! command -v foreman &> /dev/null
|
||||
then
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue