Skip to content

Latest commit

 

History

History
93 lines (79 loc) · 1.18 KB

README.md

File metadata and controls

93 lines (79 loc) · 1.18 KB

Deploy - Heroku CLI

Install Heroku CLI

Termux

sh -c "$(curl -fsSL https://raw.githubusercontent.com/SKGHD/Termux-heroku-cli/master/install.sh)"

Linux

curl https://cli-assets.heroku.com/install.sh | sh

Clone Repo

git clone https://<username>:<token>@github.com/<username>/<repo>
cd repo

Switch To Deploy Branch

git checkout zh_deploy

Login (Email & API Key)

heroku login -i

Create Heroku App

heroku create --region eu app

Add remote

heroku git:remote -a app

Create container

heroku stack:set container

Push To Heroku

git push heroku zh_deploy:master -f

Deploy to Railway

Install Railway CLI

• Linux (via npm)

npm i -g @railway/cli

• Linux (via curl)

sudo -s
curl -fsSL https://railway.app/install.sh | sh

• Termux

pkg install railway-cli

Clone Repo

https://<deploy_token>:<empty_password>@gitlab.com/<your_username>/<repository_name>
cd repo

Login

railway login --browserless

Create Project

railway init

Link Project to Repo

railway link <project_id>

Run Deploy

railway up