How To Deploy Go Web Application Using Apache Web Server on Ubuntu 18.04

How To Deploy Go Web Application Using Apache Web Server on Ubuntu 18.04



Go is an open source programming language developed by a team at Google. It provides easy to build simple, reliable, and efficient software.
Apache is the most widely used web server software. Command Link –

2 thoughts on “How To Deploy Go Web Application Using Apache Web Server on Ubuntu 18.04

  1. Thanks for your sharing. Can I do this process on my production Ubuntu server with fixed ip address (hosting server) then I point DNS from domain to the hosting server?

  2. hi I have this problem
    [email protected]:/lib/systemd/system# systemctl start goweb
    [email protected]:/lib/systemd/system# systemctl status goweb
    ● goweb.service – Go Server
    Loaded: loaded (/lib/systemd/system/goweb.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Tue 2020-06-16 09:21:19 UTC; 1s ago
    Process: 5836 ExecStart=/root/victoryDash/webapp (code=exited, status=2)
    Main PID: 5836 (code=exited, status=2)
    Jun 16 09:21:19 tes-server systemd[1]: goweb.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
    Jun 16 09:21:19 tes-server systemd[1]: goweb.service: Failed with result 'exit-code'.
    I put this in goweb.service
    [Unit]
    Description=Go Server
    [Service]
    Type=simple
    Restart=always
    RestartSec=5s
    ExecStart=/root/victoryDash/webapp
    [Install]
    WantedBy=multi-user.target

    when run the binary in their folder is ok
    [email protected]:~/victoryDash# ./webapp
    2020/06/16 09:16:15 The server is lisening on 3000 port

    do you have some idea where is the problem

Leave a Reply

Your email address will not be published. Required fields are marked *