Skip to content

Commit 3756330

Browse files
committed
Apply stashed changes and resolve schema conflict
1 parent 5771a91 commit 3756330

6 files changed

Lines changed: 31 additions & 18 deletions

File tree

DEVELOPMENT.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,16 @@ Run the Vite build with SSR (server-side-rendering):
5959
app# bin/vite build --ssr
6060
```
6161

62-
Now, let's start up the app! Run this _outside your container's shell:_
62+
Now, let's start up the app! Run this command on your host machine (not inside the container shell). The `app#` prompt indicates container-shell commands; for host commands, use your normal shell prompt:
6363

6464
```bash
65-
app# bin/dev
65+
$ bin/dev
6666
```
6767

6868
Want to do other things?
6969

70+
Run these in your container shell:
71+
7072
```bash
7173
app# bin/rails c # start an interactive irb!
7274
app# bin/rails db:migrate # migrate the database

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ENTRYPOINT ["entrypoint.dev.sh"]
6666
RUN git config --system http.timeout 30 && \
6767
git config --system http.lowSpeedLimit 1000 && \
6868
git config --system http.lowSpeedTime 10
69-
EXPOSE 3000
69+
EXPOSE 3001
7070
EXPOSE 3036
7171

7272
# Disable dev warnings

bin/dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# (or whatever process manager is available). Detection: the docker entrypoint
66
# sets RUNNING_INSIDE_CONTAINER, and /.dockerenv exists in every container.
77
if [ -n "$RUNNING_INSIDE_CONTAINER" ] || [ -f /.dockerenv ]; then
8-
export PORT="${PORT:-3000}"
8+
export PORT="${PORT:-3001}"
99

1010
if ! gem list -i --exact foreman >/dev/null; then
1111
echo "Installing foreman..."

config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
config.action_mailer.perform_caching = false
5555

5656
# Set localhost to be used by links generated in mailer templates.
57-
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
57+
config.action_mailer.default_url_options = { host: "localhost", port: 3001 }
5858

5959
# Preview emails in the browser [https://github.com/ryanb/letter_opener]
6060
config.action_mailer.delivery_method = :letter_opener

db/schema.rb

Lines changed: 23 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
context: .
55
dockerfile: Dockerfile.dev
66
ports:
7-
- "3000:3000"
7+
- "3001:3001"
88
- "3036:3036"
99
volumes:
1010
- .:/app

0 commit comments

Comments
 (0)