Skip to content

Commit

Permalink
refactor: remove unused code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenclev committed Aug 27, 2024
1 parent eae0abd commit 0de96f6
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 774 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
RUN gem install bundler --version "$BUNDLER_VERSION"
RUN npm install -g yarn

RUN rake assete:precompile

WORKDIR $APP_PATH
3 changes: 0 additions & 3 deletions app/startup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash

# Remove temporary cache files
# rm -rf tmp/cache

# Remove any pre-exisitng PID files
# rm -rf /app/solr/pids/development/sunspot-solr-development.pid
rm -rf /app/tmp/pids/server.pid

bundle install --path=vendor/bundle
Expand Down
13 changes: 6 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

services:
db: # The name of your service
image: mysql/mysql-server:latest # The image to use
environment: # Environment variables
db:
image: mysql/mysql-server:latest
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=password
ports:
- "3309:3306" # Port mapping
- "3309:3306"
expose:
- "3306"
container_name: antcat-db
volumes:
- ./sql-data:/docker-entrypoint-initdb.d # Mount the initialization directory
- ./sql-data:/docker-entrypoint-initdb.d

app:
depends_on:
Expand All @@ -31,7 +30,7 @@ services:
- ./docker_dev/database.docker-dev.yml:/app/config/database.yml
- ./config/server.yml.example:/app/config/server.yml
ports:
- "8080:8080" # Map port 8080 of the container to port 8080 on the host
- "8080:8080"
container_name: antcat-app
user: antcat
stdin_open: true
Expand Down
2 changes: 1 addition & 1 deletion docker_dev/database.docker-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default: &default
development:
<<: *default
database: <%= ENV['DB_DATABASE'] %>
# database: <%= ENV['DB_DATABASE'] %>_development
# database: <%= ENV['DB_DATABASE'] %>_developmment

test:
<<: *default
Expand Down
Loading

0 comments on commit 0de96f6

Please sign in to comment.