Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. What would be the easiest way for running automated local builds of websites on a Linux computer?

What would be the easiest way for running automated local builds of websites on a Linux computer?

Scheduled Pinned Locked Moved Uncategorized
webdevhomelab
3 Posts 2 Posters 14 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • autiomaa@mementomori.socialA This user is from outside of this forum
    autiomaa@mementomori.socialA This user is from outside of this forum
    autiomaa@mementomori.social
    wrote last edited by
    #1

    What would be the easiest way for running automated local builds of websites on a Linux computer? I have been using Netlify since ~2017, but it has been getting worse every year. I have a web hosting account on a traditional service provider, and would want to run builds locally when Git push commits happen. That way I would have somewhat similar basic functionality for building static site generated websites, without relying on 3rd party build services.

    #WebDev #HomeLab

    lcisec@infosec.exchangeL 1 Reply Last reply
    2
    0
    • System shared this topic
    • autiomaa@mementomori.socialA autiomaa@mementomori.social

      What would be the easiest way for running automated local builds of websites on a Linux computer? I have been using Netlify since ~2017, but it has been getting worse every year. I have a web hosting account on a traditional service provider, and would want to run builds locally when Git push commits happen. That way I would have somewhat similar basic functionality for building static site generated websites, without relying on 3rd party build services.

      #WebDev #HomeLab

      lcisec@infosec.exchangeL This user is from outside of this forum
      lcisec@infosec.exchangeL This user is from outside of this forum
      lcisec@infosec.exchange
      wrote last edited by
      #2

      @autiomaa I run this on a local machine to verify my changes are working as expected.

      ```#!/usr/bin/env python3

      import http.server
      from http.server import HTTPServer, BaseHTTPRequestHandler
      import socketserver

      PORT = 8080

      Handler = http.server.SimpleHTTPRequestHandler

      Handler.extensions_map={
      '.css': 'text/css',
      '.html': 'text/html',
      '': 'text/html', # Default is 'application/octet-stream'
      }

      httpd = socketserver.TCPServer(("", PORT), Handler)

      print("serving at port", PORT)
      httpd.serve_forever()
      ```

      autiomaa@mementomori.socialA 1 Reply Last reply
      0
      • lcisec@infosec.exchangeL lcisec@infosec.exchange

        @autiomaa I run this on a local machine to verify my changes are working as expected.

        ```#!/usr/bin/env python3

        import http.server
        from http.server import HTTPServer, BaseHTTPRequestHandler
        import socketserver

        PORT = 8080

        Handler = http.server.SimpleHTTPRequestHandler

        Handler.extensions_map={
        '.css': 'text/css',
        '.html': 'text/html',
        '': 'text/html', # Default is 'application/octet-stream'
        }

        httpd = socketserver.TCPServer(("", PORT), Handler)

        print("serving at port", PORT)
        httpd.serve_forever()
        ```

        autiomaa@mementomori.socialA This user is from outside of this forum
        autiomaa@mementomori.socialA This user is from outside of this forum
        autiomaa@mementomori.social
        wrote last edited by
        #3

        @lcisec That can be useful after a build process, but might also get that kind of output previews with a traditional HTTP server.

        Previews are smaller issue than the automated build pipeline.

        1 Reply Last reply
        0
        • tsrono@mastodon.socialT tsrono@mastodon.social shared this topic
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups