uadmin-railway

Golang and uAdmin CI/CD using 🚅Railway!

Deploy on Railway

Steps to Deploy

Value env variable
1 CGO_ENABLED
8080 PORT
gcc NIXPACKS_PKGS
encryption key used for encrypting and decrypting the database KEY
salt used for encrypting and decrypting the database SALT

NOTE: The PORT value here needs to match the port where uAdmin is exposed to (the default value is 8080 and I recommend not changing it unless necessary)

TA-DA! 🎉 Your app is deployed!

All that with a click of a button and a few environment variables!

Finally, to setup this repository locally, you can follow the steps below:

host ⇄ MYSQLHOST

port ⇄ MYSQLPORT

user ⇄ MYSQLUSER

password ⇄ MYSQLPASSWORD

name ⇄ MYSQLDATABSE

{
  "type": "mysql",
  "name": "railway",
  "user": "root",
  "password": "********************",
  "host": "*********************.railway.app",
  "port": 1234
}
{
  "KEY": "*********************",
  "SALT": "*********************"
}

You can test the connection to the MySQL instance by running the following command in the root of the repository locally (assuming you have go installed on your machine):

go mod download; go build .; ./railway

Commit these changes to the repository and push them to github.

Now for the cool part!

Since railway automatically deploys the app whenever there is a change in the repository, you will see that a new build is triggered and the app is deployed with the changes you made as soon as you push them to github!

To fix:

[  ERROR ]   Hanlder.NewLogger. Unix syslog delivery error

Update on the above error: The issue is solved in HEAD and will be releases in a new version with the update. (~Internal Sources 👀)

About me

GH WidgetBox

Star History

Star History Chart

GitHub Language Count GitHub Top Language GitHub Issues GitHub Closed Issues GitHub Pull Requests GitHub Closed Pull Requests GitHub Contributors GitHub Last Commit GitHub Commit Activity (Week)
Theme  Moonwalk