Node
Pre-requisites
- You will need a domain name for your project
- The installed disco CLI
- And a server initialized with disco
Set up
- If you haven't yet connected your GitHub account with your disco installation, run:
disco github:apps:add
You only need to do this once.
Steps
- Create an
CNAME
record for your project and point it to your disco server's address- let's say that your disco server's address is
disco.example.com
- create a
CNAME
for your project such asblog.example.com
(the "from") and point it to the server'sdisco.example.com
address (the "to")
- let's say that your disco server's address is
- Fork the example repo
- Add the project to your server by running the command below:
disco projects:add \
--name my-node-site \
--github USERNAME/REPONAME \
--domain DOMAINNAME
above, replace:
- the
USERNAME/REPONAME
with the path to your GitHub fork (e.g.,john/my-project
) DOMAINNAME
with the domain you wish to deploy your project to
That's it! Your project will now deploy to your server.
Once deployed, go to your domain name. Your site should be there!