Reputation: 3481
Is it possible to change a file on Netlify after the site has already been built?
Example:
If I have a site: https://physiome-test.netlify.com/simple_heart/ that accesses a file at
Is there any way that I can change this file without having to update my github repository?
Upvotes: 1
Views: 15461
Reputation: 41
The netlify-cli
can deploy directories without modifying a git repo.
Here is an example usage:
npm run build
netlify status
netlify deploy
and if everything looks good on your draft URL, take it live with the --prod
flag.
netlify deploy --prod
Everything will update automatically.
Upvotes: 4
Reputation: 14353
Is there any way that I can change this file without having to update my github repository?
Using Netlify continuous deployment, which is what you are doing, you can't just change one file on Netlify without changing the files in your git repository that is tied to building your build process.
Process Netlify uses:
trigger deploy
in the app.netlify.com
adminA new feature allows you to drag a deploy folder to app.netlify.com
for fast review/deploy without using your git repository. Go to the Deploys
tab of the site you want to update. You will see a message at the bottom like the pic below:
Drag your deploy folder to this location from your local system and your site will be updated with any new files on Netlify.
Note: All the files of your site must be in the folder with your current changes.
Upvotes: 7
Reputation: 6286
Have you tried NetlifyCMS? https://www.netlifycms.org/ You can edit content on Netlify and it is integrated to Git workflow.
Upvotes: 2