community icon indicating copy to clipboard operation
community copied to clipboard

Create netlify.toml

Open jayvdb opened this issue 6 years ago • 4 comments

Currently netlify build command is URL="http://community.coala.io/" .ci/build.sh and it publishes public

jayvdb avatar Jul 28 '18 14:07 jayvdb

ugh ... we cant just put that into netlify.toml ... it wont work for forks.

We need to remove the URL=.. :/

jayvdb avatar Jul 28 '18 15:07 jayvdb

@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.

jayvdb avatar Oct 29 '18 18:10 jayvdb

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'

bhawesh96 avatar Nov 13 '18 18:11 bhawesh96

@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 ?

KVGarg avatar Feb 15 '19 18:02 KVGarg