entrypoint update
This commit is contained in:
parent
d1fa2d6b22
commit
8ef5577801
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Update apk repository and install git
|
||||||
|
apk update && apk add --no-cache git
|
||||||
|
|
||||||
PROJECT_DIR="/app/my-medusa-app"
|
PROJECT_DIR="/app/my-medusa-app"
|
||||||
|
|
||||||
# Check if the Medusa project has already been created.
|
# Check if the Medusa project has already been created.
|
||||||
@ -11,7 +14,7 @@ if [ ! -d "$PROJECT_DIR" ]; then
|
|||||||
# --db-url: Uses the provided DATABASE_URL to connect and run migrations.
|
# --db-url: Uses the provided DATABASE_URL to connect and run migrations.
|
||||||
# --no-browser: Skip opening the admin dashboard.
|
# --no-browser: Skip opening the admin dashboard.
|
||||||
# --directory-path: Specify where to install the project.
|
# --directory-path: Specify where to install the project.
|
||||||
# --seed: Seed the database with demo data.
|
# --with-nextjs-starter: Option to install the Next.js storefront.
|
||||||
npx create-medusa-app@latest my-medusa-app \
|
npx create-medusa-app@latest my-medusa-app \
|
||||||
--db-url "$DATABASE_URL" \
|
--db-url "$DATABASE_URL" \
|
||||||
--no-browser \
|
--no-browser \
|
||||||
@ -32,7 +35,6 @@ cd "$PROJECT_DIR"
|
|||||||
# List the contents of the project directory to verify installation.
|
# List the contents of the project directory to verify installation.
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
# Finally, start the Medusa server in development/production mode as desired.
|
# Finally, start the Medusa server in development/production mode.
|
||||||
# For example, here we run the development server:
|
|
||||||
echo "Starting Medusa server..."
|
echo "Starting Medusa server..."
|
||||||
exec npm start
|
exec npm start
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user