Skip to content

Commit

Permalink
Update dependencies and configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
yatish27 committed Feb 8, 2025
1 parent b60c9d1 commit b40ebb5
Show file tree
Hide file tree
Showing 8 changed files with 235 additions and 236 deletions.
2 changes: 1 addition & 1 deletion Brewfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PostgreSQL - brew install postgresql
brew "libpq"
brew "postgresql@16"
brew "postgresql@17"
brew "curl"

# Overmind (requires tmux)
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ end
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
gem "colorize"
end

group :test do
Expand Down
23 changes: 13 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
colorize (1.1.0)
concurrent-ruby (1.3.5)
connection_pool (2.5.0)
crass (1.0.6)
Expand Down Expand Up @@ -124,7 +125,7 @@ GEM
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
json (2.9.1)
kamal (2.4.0)
kamal (2.5.2)
activesupport (>= 7.0)
base64 (~> 0.2)
bcrypt_pbkdf (~> 1.0)
Expand All @@ -149,9 +150,9 @@ GEM
matrix (0.4.2)
mini_mime (1.1.5)
minitest (5.25.4)
msgpack (1.7.5)
msgpack (1.8.0)
mutex_m (0.3.0)
net-imap (0.5.5)
net-imap (0.5.6)
date
net-protocol
net-pop (0.1.2)
Expand All @@ -162,7 +163,8 @@ GEM
net-ssh (>= 2.6.5, < 8.0.0)
net-sftp (4.0.0)
net-ssh (>= 5.0.0, < 8.0.0)
net-smtp (0.5.0)
net-smtp (0.5.1)
net-protocol
net-ssh (7.3.0)
nio4r (2.7.4)
nokogiri (1.18.2-aarch64-linux-gnu)
Expand All @@ -181,7 +183,7 @@ GEM
racc (~> 1.4)
ostruct (0.6.1)
parallel (1.26.3)
parser (3.3.7.0)
parser (3.3.7.1)
ast (~> 2.4.1)
racc
pg (1.5.9)
Expand All @@ -196,7 +198,7 @@ GEM
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.8.1)
rack (3.1.8)
rack (3.1.9)
rack-proxy (0.7.7)
rack
rack-session (2.1.0)
Expand Down Expand Up @@ -237,20 +239,20 @@ GEM
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.2.1)
rdoc (6.11.0)
rdoc (6.12.0)
psych (>= 4.0.0)
regexp_parser (2.10.0)
reline (0.6.0)
io-console (~> 0.5)
rexml (3.4.0)
rubocop (1.71.0)
rubocop (1.71.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.36.2, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.38.0)
Expand Down Expand Up @@ -285,7 +287,7 @@ GEM
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
solid_cache (1.0.6)
solid_cache (1.0.7)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
Expand Down Expand Up @@ -359,6 +361,7 @@ DEPENDENCIES
bootsnap
brakeman
capybara
colorize
debug
jbuilder
kamal
Expand Down
2 changes: 1 addition & 1 deletion Procfile.dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

vite: bin/vite dev
web: bin/rails s
web: bin/rails s -p $PORT
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,6 @@ This runs overmind or foreman using the Procfile.dev. It starts the rails server

Visit `http://localhost:3000` to see the home page 🚀.

### Running locally with docker

Shore supports docker and docker compose for local development.
Install Docker and Docker desktop,

Once you have cloned the repository and have Docker installed, follow the following steps

- Run `docker compose build` to build. It will build the necessary images.
- Run `docker-compose run --rm web bin/setup` to create and set up the database.
- Run `docker compose up` to start the application.
Since the local code from your host machine is mounted in the docker container, any change made locally will be directly reflected. You don't need to rebuild the container.

## Deployment 📦

- Heroku
Expand Down
12 changes: 10 additions & 2 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
#!/usr/bin/env ruby
exec "./bin/rails", "server", *ARGV
#!/usr/bin/env sh

# Default to port 3000 if not specified
export PORT="${PORT:-3000}"

if ! command -v overmind 2>&1 >/dev/null; then
gem install overmind
fi

exec overmind start -T -f Procfile.dev "$@"
1 change: 0 additions & 1 deletion bin/rename_project
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ gsub_in_file("config/environments/production.rb", /shore/, new_snake_name)
gsub_in_file("config/cable.yml", /shore/, new_snake_name)
gsub_in_file("config/database.yml", /SHORE/, new_upcase_name)
gsub_in_file("config/database.yml", /shore/, new_snake_name)
gsub_in_file("docker-compose.yml", /shore/, new_snake_name)

puts "Renamed the project to #{new_name}."
puts "Check the changes using git diff"
Loading

0 comments on commit b40ebb5

Please sign in to comment.