You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Navigate to the livereload-basic root project directory, then run:<br>
91
+
`docker compose -f docker-compose.dev.yml pull`
92
+
93
+
2. Run the development image.
94
+
- Using only Docker (1st option):
95
+
> **INFO:** This option requires having the static website development HTML, CSS and JavaScript files inside a "/public" directory, consisting of at least:
- > **INFO:** Uncomment the following lines in the `docker-compose.dev.yml` file when working in a Windows host.
115
+
```
116
+
# Enable USE_POLLING if working in Windows WSL2 to enable hot reload
117
+
environment:
118
+
- IS_DOCKER=true
119
+
- USE_POLLING=true
120
+
```
121
+
3. Refer to the [Usage](#usage) section steps **# 2 - # 4** for local development.
122
+
75
123
### Local-Built Development Image
76
124
77
125
1. Build the Docker image for local development.
@@ -91,7 +139,7 @@ Starts a simple ExpressJS web server serving the static website app from its sta
91
139
92
140
### Development Image
93
141
94
-
The **development** Docker image contains Node runtime, Gulp, Browser-Sync and yarn dependencies, and the latest repository source codes for local development. Build it with:
142
+
The **development** Docker image contains Node runtime, Gulp, Browser-Sync and Yarn dependencies, and the latest repository source codes for local development. Build it with:
95
143
96
144
`docker compose -f docker-compose.dev.yml build`
97
145
@@ -101,6 +149,25 @@ The **production** Docker image contains the static website running in an nginx
101
149
102
150
`docker compose -f docker-compose.prod.yml build`
103
151
152
+
## Deployment with GitHub Actions
153
+
154
+
This repository deploys the **local development** Docker image to Docker Hub on the creation of new Release/Tags.
155
+
156
+
Add the following GitHub Secrets and Variables to enable deployment to Docker Hub.
157
+
158
+
#### GitHub Secrets
159
+
160
+
| GitHub Secret | Description |
161
+
| --- | --- |
162
+
| DOCKERHUB_USERNAME | (Optional) Docker Hub username. Required to enable pushing the development image to Docker Hub. |
163
+
| DOCKERHUB_TOKEN | (Optional) Deploy token for the Docker Hub account. Required to enable pushing the development image to Docker Hub. |
164
+
165
+
#### GitHub Variables
166
+
167
+
| GitHub Variable | Description |
168
+
| --- | --- |
169
+
| DOCKERHUB_USERNAME | (Optional) Docker Hub username. Required to enable pushing the development image to Docker Hub. |
170
+
104
171
## Debugging Notes
105
172
106
173
<details>
@@ -112,7 +179,7 @@ The **production** Docker image contains the static website running in an nginx
112
179
113
180
> Debugging regular (traditional) web apps with VSCode is similar to debugging and adding breakpoints from the Chrome or Edge browser's **Sources** tab.
114
181
115
-
> [!TIP]
182
+
> **TIP**<br>
116
183
> Take note of its VSCode launch settings with a `"pathMapping"` key. It is quite similar to the VSCode launch settings of [web apps launched with Webpack](https://github.com/weaponsforge/livereload-webpack#other-notes).
117
184
118
185
1. Add breakpoints in the JavaScript (`*.js`) files inside the website's directory entry point at the `"public/"` directory.
0 commit comments