Skip to content

Commit 7a3f190

Browse files
authored
Merge pull request #92 from ajcwebdev/railway
Run `serve` command for Railway deploy
2 parents 9abfcda + 029eeb1 commit 7a3f190

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ RUN mkdir -p content
7777

7878
EXPOSE 3000
7979
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
80-
CMD ["--help"]
80+
CMD ["serve"]

.github/docker-entrypoint.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#!/bin/sh
22
# .github/docker-entrypoint.sh
33

4-
# Check if running from correct directory structure
5-
if [ ! -d "/usr/src/app/content" ]; then
6-
echo "Error: content directory not mounted. Did you run from autoshow root with proper volume mount?"
7-
exit 1
8-
fi
9-
104
# If first argument is "serve", then start the server.
115
if [ "$1" = "serve" ]; then
126
echo "Starting Autoshow server..."

src/server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function start() {
4040
// Start the server
4141
await fastify.listen({
4242
port, // Use configured port
43-
host: '::', // Listen on all network interfaces
43+
host: '0.0.0.0', // Listen on all network interfaces
4444
})
4545

4646
// Log successful server start

0 commit comments

Comments
 (0)