File tree 1 file changed +0
-54
lines changed
1 file changed +0
-54
lines changed Original file line number Diff line number Diff line change @@ -276,60 +276,6 @@ You can also add custom domains and handle custom build settings on Pages. Learn
276
276
277
277
You can also deploy to a [ custom domain] ( http://surge.sh/help/adding-a-custom-domain ) by adding ` surge dist yourdomain.com ` .
278
278
279
- ## Heroku
280
-
281
- 1 . Install [ Heroku CLI] ( https://devcenter.heroku.com/articles/heroku-cli ) .
282
-
283
- 2 . Create a Heroku account by [ signing up] ( https://signup.heroku.com ) .
284
-
285
- 3 . Run ` heroku login ` and fill in your Heroku credentials:
286
-
287
- ``` bash
288
- $ heroku login
289
- ```
290
-
291
- 4 . Create a file called ` static.json ` in the root of your project with the below content:
292
-
293
- ` static.json ` :
294
-
295
- ``` json
296
- {
297
- "root" : " ./dist"
298
- }
299
- ```
300
-
301
- This is the configuration of your site; read more at [ heroku-buildpack-static] ( https://github.com/heroku/heroku-buildpack-static ) .
302
-
303
- 5 . Set up your Heroku git remote:
304
-
305
- ``` bash
306
- # version change
307
- $ git init
308
- $ git add .
309
- $ git commit -m " My site ready for deployment."
310
-
311
- # creates a new app with a specified name
312
- $ heroku apps:create example
313
- ```
314
-
315
- 6 . Set buildpacks. We use ` heroku/nodejs ` to build the project and ` heroku-buildpack-static ` to serve it.
316
-
317
- ``` bash
318
- # set buildpacks
319
- $ heroku buildpacks:set heroku/nodejs
320
- $ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static.git
321
- ```
322
-
323
- 7 . Deploy your site:
324
-
325
- ``` bash
326
- # publish site
327
- $ git push heroku main
328
-
329
- # opens a browser to view the Dashboard version of Heroku CI
330
- $ heroku open
331
- ```
332
-
333
279
## Azure Static Web Apps
334
280
335
281
You can quickly deploy your Vite app with Microsoft Azure [ Static Web Apps] ( https://aka.ms/staticwebapps ) service. You need:
You can’t perform that action at this time.
0 commit comments