capcom6 / android-sms-gateway

The SMS Gateway for Androidâ„¢ app enables sending and receiving SMS messages through an API that can be accessed directly on the device or via a cloud server when direct device access is not possible.
https://sms-gate.app
Apache License 2.0
201 stars 53 forks source link

Can We run own private server without docker? #86

Closed musamasays closed 2 months ago

musamasays commented 3 months ago

I am not able to run docker on my vps due to processor architecture. Is there any way to run without docker.

Any guidance will be appreciated

capcom6 commented 3 months ago

Hello!

Yes, you can run your own private server without Docker, but you'll need to manually compile the backend directly on your VPS or use cross-compilation.

Prerequisites:

  1. Go 1.22 or higher.
  2. Internet access to download dependencies.

Steps:

  1. Clone the repository.
  2. Build the project using go build -o path/to/output/binary ./cmd/sms-gateway. For cross-compilation, set the GOOS and GOARCH environment variables accordingly. For example: GOOS=linux GOARCH=arm64 go build -o path/to/output/binary ./cmd/sms-gateway. You can find available combinations here.
  3. You're all set. Follow the instructions for setting up a Private server, but instead of using Docker, utilize the built binary directly. You might also need to create a systemd unit file to run the backend as a service.
capcom6 commented 2 months ago

Hello, @musamasays

Do you have any more questions or need further assistance? If not, may I proceed to close this issue?