git clone https://github.com/mobtimeapp/mobtime.git
{
"scripts": {
"heroku-postbuild": "npm run tailwind",
}
}
heroku login
# create apps
heroku create [app name]
# add heroku redis free plan
heroku addons:create heroku-redis:hobby-dev
# check redis
heroku addons | grep heroku-redis
# wait created
heroku addons:info [radis name]
# check redis REDIS_URL
heroku config | grep REDIS
heroku/nodejs
# REDIS_URL eq redis://:[password]@[host]:[port]
web: REDIS_HOST=:[password]@[host] REDIS_PORT=[redis port] APP_HOST=0.0.0.0 APP_PORT=$PORT npm start
# app restart
heroku restart --app [app name]