fix: Tailwind build in development
This commit is contained in:
		| @@ -3,7 +3,6 @@ | |||||||
| /.github/ | /.github/ | ||||||
| /dist/ | /dist/ | ||||||
| /debug/ | /debug/ | ||||||
| /docker/ |  | ||||||
| /node_modules/ | /node_modules/ | ||||||
| /static/ | /static/ | ||||||
| /target/ | /target/ | ||||||
|   | |||||||
| @@ -31,7 +31,7 @@ watch_path = ["src", "assets"] | |||||||
|  |  | ||||||
| # CSS style file | # CSS style file | ||||||
|  |  | ||||||
| style = ["/tailwind.css"] | style = ["/styles/tailwind_output.css"] | ||||||
|  |  | ||||||
| # Javascript code file | # Javascript code file | ||||||
| script = [] | script = [] | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								assets/styles/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								assets/styles/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1 +1 @@ | |||||||
| tailwind_output.css | /tailwind_output.css | ||||||
|   | |||||||
| @@ -9,7 +9,6 @@ services: | |||||||
|       - /srv/app/.dioxus/ |       - /srv/app/.dioxus/ | ||||||
|       - /srv/app/dist/ |       - /srv/app/dist/ | ||||||
|       - /srv/app/debug/ |       - /srv/app/debug/ | ||||||
|       - /srv/app/docker/ |  | ||||||
|       - /srv/app/node_modules/ |       - /srv/app/node_modules/ | ||||||
|       - /srv/app/static/ |       - /srv/app/static/ | ||||||
|       - /srv/app/target/ |       - /srv/app/target/ | ||||||
|   | |||||||
| @@ -2,11 +2,13 @@ FROM rust:1.80-bookworm | |||||||
|  |  | ||||||
| RUN rustup target add wasm32-unknown-unknown | RUN rustup target add wasm32-unknown-unknown | ||||||
| RUN cargo install dioxus-cli diesel_cli | RUN cargo install dioxus-cli diesel_cli | ||||||
| RUN apt-get update && apt-get install -y nodejs npm | RUN apt-get update && apt-get install -y nodejs npm supervisor | ||||||
|  |  | ||||||
| COPY . /srv/app | COPY . /srv/app | ||||||
| WORKDIR /srv/app | WORKDIR /srv/app | ||||||
|  |  | ||||||
| RUN npm install | RUN npm install | ||||||
|  |  | ||||||
| CMD npm run watch & dx serve --port 8000 | COPY docker/dev/app/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||||||
|  |  | ||||||
|  | CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] | ||||||
|   | |||||||
							
								
								
									
										23
									
								
								docker/dev/app/supervisord.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								docker/dev/app/supervisord.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | [supervisord] | ||||||
|  | nodaemon=true | ||||||
|  | logfile=/dev/null | ||||||
|  | logfile_maxbytes=0 | ||||||
|  | pidfile=/dev/null | ||||||
|  |  | ||||||
|  | [program:npm] | ||||||
|  | command=npm run watch | ||||||
|  | directory=/srv/app | ||||||
|  | autostart=true | ||||||
|  | autorestart=true | ||||||
|  | stdout_logfile=/dev/fd/1 | ||||||
|  | stdout_logfile_maxbytes=0 | ||||||
|  | redirect_stderr=true | ||||||
|  |  | ||||||
|  | [program:dx] | ||||||
|  | command=dx serve --port 8000 | ||||||
|  | directory=/srv/app | ||||||
|  | autostart=true | ||||||
|  | autorestart=true | ||||||
|  | stdout_logfile=/dev/fd/1 | ||||||
|  | stdout_logfile_maxbytes=0 | ||||||
|  | redirect_stderr=true | ||||||
		Reference in New Issue
	
	Block a user
	 Matouš Volf
					Matouš Volf