mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
docs: updated docker + README to reflect new monorepo structure, removed husky
This commit is contained in:
@@ -18,11 +18,14 @@ alias pgc="PGPASSWORD=postgres psql -h db -U postgres -d postgres"
|
||||
alias check-db="PGPASSWORD=postgres psql -h db -U postgres -c '\l'"
|
||||
|
||||
# Sim Studio specific aliases
|
||||
alias logs="tail -f logs/*.log 2>/dev/null || echo 'No log files found'"
|
||||
alias sim-start="npm run dev"
|
||||
alias sim-migrate="npx drizzle-kit push"
|
||||
alias sim-generate="npx drizzle-kit generate"
|
||||
alias sim-rebuild="npm run build && npm start"
|
||||
alias logs="cd /workspace/sim && tail -f logs/*.log 2>/dev/null || echo 'No log files found'"
|
||||
alias sim-start="cd /workspace/sim && npm run dev"
|
||||
alias sim-migrate="cd /workspace/sim && npx drizzle-kit push"
|
||||
alias sim-generate="cd /workspace/sim && npx drizzle-kit generate"
|
||||
alias sim-rebuild="cd /workspace/sim && npm run build && npm start"
|
||||
|
||||
# Default to sim directory
|
||||
cd /workspace/sim 2>/dev/null || true
|
||||
|
||||
# Welcome message - only show once per session
|
||||
if [ -z "$SIM_WELCOME_SHOWN" ]; then
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "app",
|
||||
"workspaceFolder": "/workspace",
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
|
||||
@@ -15,6 +15,7 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
network_mode: service:db
|
||||
working_dir: /workspace/sim
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
|
||||
@@ -5,9 +5,12 @@ set -e
|
||||
|
||||
echo "🔧 Setting up Sim Studio development environment..."
|
||||
|
||||
# Change to the sim directory
|
||||
cd /workspace/sim
|
||||
|
||||
# Setup .bashrc
|
||||
echo "📄 Setting up .bashrc with aliases..."
|
||||
cp .devcontainer/.bashrc ~/.bashrc
|
||||
cp /workspace/.devcontainer/.bashrc ~/.bashrc
|
||||
# Add to .profile to ensure .bashrc is sourced in non-interactive shells
|
||||
echo 'if [ -f ~/.bashrc ]; then . ~/.bashrc; fi' >> ~/.profile
|
||||
|
||||
@@ -55,13 +58,13 @@ echo "Waiting for database to be ready..."
|
||||
cat << EOF >> ~/.bashrc
|
||||
|
||||
# Additional Sim Studio Development Aliases
|
||||
alias migrate="npx drizzle-kit push"
|
||||
alias generate="npx drizzle-kit generate"
|
||||
alias dev="npm run dev"
|
||||
alias build="npm run build"
|
||||
alias start="npm run start"
|
||||
alias lint="npm run lint"
|
||||
alias test="npm run test"
|
||||
alias migrate="cd /workspace/sim && npx drizzle-kit push"
|
||||
alias generate="cd /workspace/sim && npx drizzle-kit generate"
|
||||
alias dev="cd /workspace/sim && npm run dev"
|
||||
alias build="cd /workspace/sim && npm run build"
|
||||
alias start="cd /workspace/sim && npm run start"
|
||||
alias lint="cd /workspace/sim && npm run lint"
|
||||
alias test="cd /workspace/sim && npm run test"
|
||||
EOF
|
||||
|
||||
# Source the .bashrc to make aliases available immediately
|
||||
|
||||
Reference in New Issue
Block a user