mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	- Remove the deprecated extensions - Install claude code in base image - Fix rails deprecation warning
		
			
				
	
	
		
			17 lines
		
	
	
		
			684 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			684 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
cp .env.example .env
 | 
						|
sed -i -e '/REDIS_URL/ s/=.*/=redis:\/\/localhost:6379/' .env
 | 
						|
sed -i -e '/POSTGRES_HOST/ s/=.*/=localhost/' .env
 | 
						|
sed -i -e '/SMTP_ADDRESS/ s/=.*/=localhost/' .env
 | 
						|
sed -i -e "/FRONTEND_URL/ s/=.*/=https:\/\/$CODESPACE_NAME-3000.app.github.dev/" .env
 | 
						|
 | 
						|
# Setup Claude Code API key if available
 | 
						|
if [ -n "$CLAUDE_CODE_API_KEY" ]; then
 | 
						|
  mkdir -p ~/.claude
 | 
						|
  echo '{"apiKeyHelper": "~/.claude/anthropic_key.sh"}' > ~/.claude/settings.json
 | 
						|
  echo "echo \"$CLAUDE_CODE_API_KEY\"" > ~/.claude/anthropic_key.sh
 | 
						|
  chmod +x ~/.claude/anthropic_key.sh
 | 
						|
fi
 | 
						|
 | 
						|
# codespaces make the ports public
 | 
						|
gh codespace ports visibility 3000:public 3036:public 8025:public -c $CODESPACE_NAME
 |