mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	chore: Improvements for codespace (#11667)
- move to vite build instead of dev for codespaces - disable miniprofiler
This commit is contained in:
		
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @@ -44,6 +44,12 @@ force_run: | |||||||
| 	rm -f tmp/pids/*.pid | 	rm -f tmp/pids/*.pid | ||||||
| 	overmind start -f Procfile.dev | 	overmind start -f Procfile.dev | ||||||
|  |  | ||||||
|  | force_run_tunnel: | ||||||
|  | 	lsof -ti:3000 | xargs kill -9 2>/dev/null || true | ||||||
|  | 	rm -f ./.overmind.sock | ||||||
|  | 	rm -f tmp/pids/*.pid | ||||||
|  | 	overmind start -f Procfile.tunnel | ||||||
|  |  | ||||||
| debug: | debug: | ||||||
| 	overmind connect backend | 	overmind connect backend | ||||||
|  |  | ||||||
| @@ -53,4 +59,4 @@ debug_worker: | |||||||
| docker:  | docker:  | ||||||
| 	docker build -t $(APP_NAME) -f ./docker/Dockerfile . | 	docker build -t $(APP_NAME) -f ./docker/Dockerfile . | ||||||
|  |  | ||||||
| .PHONY: setup db_create db_migrate db_seed db_reset db console server burn docker run force_run debug debug_worker | .PHONY: setup db_create db_migrate db_seed db_reset db console server burn docker run force_run force_run_tunnel debug debug_worker | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								Procfile.tunnel
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Procfile.tunnel
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | backend: DISABLE_MINI_PROFILER=true bin/rails s -p 3000 | ||||||
|  | # https://github.com/mperham/sidekiq/issues/3090#issuecomment-389748695 | ||||||
|  | worker: dotenv bundle exec sidekiq -C config/sidekiq.yml | ||||||
|  | vite: bin/vite build --watch | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| # frozen_string_literal: true | # frozen_string_literal: true | ||||||
|  |  | ||||||
| if Rails.env.development? | if Rails.env.development? && ENV['DISABLE_MINI_PROFILER'].blank? | ||||||
|   require 'rack-mini-profiler' |   require 'rack-mini-profiler' | ||||||
|  |  | ||||||
|   # initialization is skipped so trigger it |   # initialization is skipped so trigger it | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sojan Jose
					Sojan Jose