You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							14 lines
						
					
					
						
							387 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							14 lines
						
					
					
						
							387 B
						
					
					
				
								#!/bin/bash -e
							 | 
						|
								
							 | 
						|
								# Enable jemalloc for reduced memory usage and latency.
							 | 
						|
								if [ -z "${LD_PRELOAD+x}" ]; then
							 | 
						|
								    LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
							 | 
						|
								    export LD_PRELOAD
							 | 
						|
								fi
							 | 
						|
								
							 | 
						|
								# If running the rails server then create or migrate existing database
							 | 
						|
								if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
							 | 
						|
								  ./bin/rails db:prepare
							 | 
						|
								fi
							 | 
						|
								
							 | 
						|
								exec "${@}"
							 |