forked from maybe-finance/maybe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Resolves maybe-finance#306; Add Windows compatibility and Docke…
…r setup Upgraded README.md file Added support for Windows system by including different versions of dependencies in Gemfile. Also introduced Docker setup to the project via a docker-compose file for easy setup and environment consistency. Files for Windows-specific development workflow and a Docker setup guide were also added to the README. Lastly, a .gitignore update included to ignore files from JetBrains products and Docker's PostgreSQL volume data.
- Loading branch information
Showing
6 changed files
with
123 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web: rails server | ||
css: rails tailwindcss:watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if ((gem list foreman -i) -ne "true") | ||
{ | ||
Write-Host "Installing foreman..." | ||
gem install foreman | ||
} | ||
|
||
# Default to port 3000 if not specified | ||
if ($env:PORT -eq $null) | ||
{ | ||
$env:PORT = "3000" | ||
} | ||
|
||
# Let the debug gem allow remote connections, | ||
# but avoid loading until `debugger` is called | ||
$env:RUBY_DEBUG_OPEN = "true" | ||
$env:RUBY_DEBUG_LAZY = "true" | ||
|
||
foreman start -f Procfile.windows.dev $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3.9' | ||
services: | ||
postgres: | ||
image: postgres:16-alpine | ||
restart: always | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- ./pgdata:/var/lib/postgresql/data | ||
|
||
redis: | ||
image: redis:7.2-alpine | ||
restart: always | ||
ports: | ||
- "6379:6379" |