-
Notifications
You must be signed in to change notification settings - Fork 0
hosting
DNS
define
FTP
define
HTTP
define
C NAME
define
A RECORD
define
Proxy Server
define
TTL
define
Heroku Deployment
CLI: heroku create (name optional)
Name can be changed on Heroku website
Project must contain .gitignore file (gitignore node)
CLI: git remote -v
Should be showing the respective heroku & github remotes (4 total)
CLI: git add .
CLI: git commit -m " initial upload to heroku"
CLI: git push heroku master
CLI: heroku open
Can be checked at the heroku URL or via postman
Firebase Deployment
Create project on Firebase website.
CLI: firebase init
Select "Hosting" (using spacebar to fill circle)
Select the project that is to be hosted.
Use . for the public directory (so all files in the folder are included)
Answer for overwrite index: No - and - overwrite app: No
CLI: firebase deploy
Firebase/NameCheap Hosting Setup
Firebase and/or Heroku Deployment Steps:
Make sure repo has a CNAME file.
On the Firebase website console navigate to the "Hosting" tab
Select "Add Domain"
Under add domain input the url without http://www test.com
Verify the domain by adding the TXT file on Namecheap
Add the Firebase IP address as A Records on Namecheap