Coder Social home page Coder Social logo

polymatx.github.io's Introduction

polymatx.github.io

Website: https://polymatx.dev

Dev

Requires python3 and golang

make dev

Setting up GoLang and wasm_exec.js

Installing GoLang

GoLang is required to compile and manage WebAssembly modules using Go. Here's how to install Go:

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go

Once installed, verify the installation with:

go version

wasm_exec.js

wasm_exec.js is provided by the Go installation and is used to support Go's WebAssembly binaries in the web environment. It emulates a Go environment within the browser, handling tasks like memory management and system calls.

To run your server in the background continuously, especially on a VPS, you can use a variety of methods. Here are a few common approaches that are suitable for production or semi-production environments:

  1. Using nohup Command
    nohup make dev &
  2. Using screen or tmux
    screen -S server
    make dev
    # Press Ctrl+A then D to detach
    screen -r server
    tmux new -s server
    make dev
    # Press Ctrl+B then D to detach
    tmux attach -t server
  3. Using Systemd (Recommended for Production)
    1. Create a systemd service file:

      nano /etc/systemd/system/website.service
      [Unit]
      Description=Website Terminal
      
      [Service]
      ExecStart=/usr/bin/make -C /path/to/your/project/dir dev
      WorkingDirectory=/path/to/your/project/dir
      User=your-user
      Restart=always
      
      [Install]
      WantedBy=multi-user.target
    2. Enable and start your service:

      sudo systemctl enable website.service
      sudo systemctl start website.service
    3. Check service status is OK or not

      sudo systemctl status website.service
      journalctl -u myservice.service

polymatx.github.io's People

Contributors

peterkaminski avatar polymatx avatar protiumx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.