Skip to content

hosting

Ben Casalino edited this page Jun 5, 2018 · 2 revisions

Hosting/Development

DNS

define

FTP

define

HTTP

define

C NAME

define

A RECORD

define

Proxy Server

define

TTL

define

QA

Mobile Tester

Proxy Server

Propagation status

Heroku

Heroku Deployment

Tutorial

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

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

DNS/NameCheap

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

Clone this wiki locally