mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -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'
|
gem 'shoulda-matchers', '~> 5.1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem 'foreman'
|
||||||
|
end
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -6,12 +6,16 @@ setup_backend: bundle
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
make bundle
|
make bundle
|
||||||
|
make setup_frontend
|
||||||
make setup_db
|
make setup_db
|
||||||
|
|
||||||
bundle:
|
bundle:
|
||||||
docker-compose run --rm solo_customer_template_app gem install bundler --conservative
|
docker-compose run --rm solo_customer_template_app gem install bundler --conservative
|
||||||
docker-compose run --rm solo_customer_template_app bundle install
|
docker-compose run --rm solo_customer_template_app bundle install
|
||||||
|
|
||||||
|
setup_frontend:
|
||||||
|
npm i daisyui
|
||||||
|
|
||||||
setup_db:
|
setup_db:
|
||||||
docker-compose run --rm solo_customer_template_app rails db:create db:migrate db:seed
|
docker-compose run --rm solo_customer_template_app rails db:create db:migrate db:seed
|
||||||
|
|
||||||
|
|
@ -24,7 +28,7 @@ rollback:
|
||||||
|
|
||||||
# Debugging the project
|
# Debugging the project
|
||||||
bash:
|
bash:
|
||||||
docker-compose run --rm solo_customer_template_app bash
|
docker-compose run --rm solo_customer_template_app sh
|
||||||
|
|
||||||
console:
|
console:
|
||||||
docker-compose run --rm solo_customer_template_app bundle exec rails c
|
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
|
css: bin/rails tailwindcss:watch
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-none">
|
<div class="flex-none">
|
||||||
<ul class="menu menu-horizontal p-0">
|
<ul class="menu menu-horizontal p-0">
|
||||||
<li><%= link_to 'Link0', profis_path %></li>
|
<li><%= link_to 'Link0', '#' %></li>
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<li tabindex="0">
|
<li tabindex="0">
|
||||||
<a>
|
<a>
|
||||||
|
|
|
||||||
2
bin/dev
2
bin/dev
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
|
|
||||||
if ! command -v foreman &> /dev/null
|
if ! command -v foreman &> /dev/null
|
||||||
then
|
then
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
env_file: .env.development
|
env_file: .env.development
|
||||||
entrypoint: dev-entrypoint.sh
|
entrypoint: dev-entrypoint.sh
|
||||||
command: ['rails', 'server', '-p', '3000', '-b', '0.0.0.0']
|
command: ['bin/dev']
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: development
|
RAILS_ENV: development
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue