Open apreshill opened 5 years ago
This pertains to step 9 above:
Alisons-MacBook-Pro:armed alison$ netlify init --manual
? What would you like to do? + Create & configure a new site
Choose a site name or leave blank for a random name. You can update later.
? Site name (optional): armed
? Account: Alison Presmanes Hill (personal)
Site Created
Admin URL: https://app.netlify.com/sites/armed
URL: https://armed.netlify.com
Site ID: 8d3ac697-172f-4abe-9caf-09a4e81b9d42
Give this Netlify SSH public key access to your repository:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxtMENi56ruhFK5/8BSw871NMvpdU+r5JKF2F3c3RhRdx/uE5eJXf+4ZORpZpR0JRtkU0piW49SyXHxzklajijCr6PoY+snetlHnJpUeuy2oq7YG4IpKRCCMjwfUZ8IuBQcKpRwQyG9TA1slRjLQkMteW6AsSr/0+1E2G2fVIagPbnfbV/752B/z3H0I/vxVJwOPnIWJcdzEZ8q7vxUTy2Td4Av5bpsMObn75B4axRsRLzoTCt01WcuQcPYZzBwLsdmkTUmpO1m1RqLGKj8gxCpOURcm+yJYofKdKlk5VJVOOyS5WZ+0W1F2Irn9iNUdWGYoxurJ6dQYluA2LZfF57
? Continue? Yes
? Your build command (hugo build/yarn run build/etc): undefined
? Directory to deploy (blank for current dir): .
Configure the following webhook for your repository:
https://api.netlify.com/hooks/5c2fdd6d220c45ff53d7f7f9
? Continue? Yes
Netlify CI/CD Configured!
This site is now configured to automatically deploy from manual branches & pull requests
Next steps:
git push Push to your git repository to trigger new site builds
netlify open Open the netlify admin url of your site
Alisons-MacBook-Pro:armed alison$
Hereafter, approach # 1: Happy Git approach (manual deploy, requires using Netlify CLI locally)
Basics:
netlify deploy --dir _book --prod
in the.travis.yml
)Made my book
updated my
.gitignore
to include:_book
_bookdown_files
Copied Jenny's
.travis.yml
~~added
.RBuildignore
^.*\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
~~configured travis for repo via GitHub
followed netlify cli here in terminal
Obtain a Token in the Netlify UI
In Travis:
NETLIFY_AUTH_TOKEN
environment variable.did manual deploy setup in terminal with netlify cli to update
.travis.yml
this added
.netlify/state.json
to my repo for mebut then added
.netlify
to.gitignore
add DESCRIPTION
push to github and hold breath
log onto netlify and see my site there, it says manual deploys
do this through Netlify UI
Note that in Netlify UI "build settings" are empty ("not set" for base and build directories, and "." for publish directory)