diff --git a/Makefile b/Makefile index 8e005264..b0885ec2 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,6 @@ production_migrate: ssh dokku_frey 'dokku run dawarich bundle exec rails db:migrate' build_and_push: - docker build . -t dawarich --platform=linux/amd64 --no-cache + docker build . -t dawarich --platform=linux/amd64 docker tag dawarich registry.chibi.rodeo/dawarich docker push registry.chibi.rodeo/dawarich diff --git a/app/controllers/points_controller.rb b/app/controllers/points_controller.rb index c473f5f5..c89ff14b 100644 --- a/app/controllers/points_controller.rb +++ b/app/controllers/points_controller.rb @@ -2,7 +2,7 @@ class PointsController < ApplicationController before_action :authenticate_user! def index - @points = current_user.points + @points = Point.all @coordinates = @points.as_json(only: [:latitude, :longitude]) end diff --git a/app/views/points/index.html.erb b/app/views/points/index.html.erb index 160d4cbd..61e8136c 100644 --- a/app/views/points/index.html.erb +++ b/app/views/points/index.html.erb @@ -1,3 +1,3 @@ -<%= js_map(@coordinates, style: "mapbox://styles/mapbox/outdoors-v12", trail: true) %> +<%= js_map(@coordinates, style: "mapbox://styles/mapbox/outdoors-v12", trail: true, width: '100%', height: '800px') %> <%#= render 'points/table', points: @points %>