community
community copied to clipboard
Create netlify.toml
Currently netlify build command is URL="http://community.coala.io/" .ci/build.sh
and it publishes public
ugh ... we cant just put that into netlify.toml ... it wont work for forks.
We need to remove the URL=..
:/
@sks444 , did you get Netlify builds working on your fork ?
I suspect it doesnt work due to get_remote_url
# Netlify doesnt have any git remotes
# It only sets the REPOSITORY_URL
One approach for that would be to use the forks REPOSITORY_URL
and replace username -> org, but at that stage the code is still trying to find the org name. Funny problem to have. We could have a env var override for ORG_NAME. That would be a workaround for a few problems.
I too was unable to deploy on netlify from my fork. Build failed with the following error -
/community/git.py", line 75, in get_repo_slug
10:30:01 PM: return url.owner + '/' + url.name
10:30:01 PM: TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
@jayvdb @sks444 Have gone through netlify.toml reference, I figured out that we need only two variables in the file - build
and publish
. Do we need any more variables for the 3 contexts - Production, Deploy-preview and branch -deploy ?