How can i deploy to an existing glitch project?

Hi guys i’m trying to deploy my test sene on a glitch project i’ve created before, without using the deploy button inside the script called “Deploy to Glitch”.
I tried to paste the url of my glitch prj but the component says it needs a key. Where can i find it and is it that missing key that make this error appear in the console?
issue.png

Original Post on Discord

by user 771724594846367796

Hi!
So the Glitch project is one that you had already remixed via Needle?

If yes: if you go to the URL you can look at / change the deploy key in the .env file

Hi @herbst🌵 actually it isn’t remixed via needle. In fact i didn’t clicked the button “Create new glitch remix” inside the deploy component

by user 771724594846367796

am i able to do it without remixing the template proivided?

by user 771724594846367796

There’s specific code and packages involved that allow us to directly deploy to Glitch
(basically we upload a zip file and the page needs to have a backend to receive and deploy that zip file)

oh ok so my glitch project doesn’t have what’s needed to deploy

by user 771724594846367796

Exactly
You don’t need to remix from inside Unity, you can also just remix this: https://glitch.com/edit/#!/needle-tiny-starter
(or look at what you’d need from that for a deployment backend if you absolutely want to)

You could get/copy that code over to your remix if you wanted. Is there a specific reason for you to do so?

I was trying to find out if it was possible to do it on a glitch prj that was already filled with html data and css and stuff…

by user 771724594846367796

I assume the best way would be to start from your template or just check the backend needed

by user 771724594846367796

btw thanks for the quick reply guys, very appreciated

by user 771724594846367796

Be aware that deployment currently assumes that all files in the target folder (that is public/ on glitch) come from your local web project and will be overriden on deploy - so if you have some files in there that you would want to keep you’d need to modify the code in deploy.js (see line 65) Glitch :・゚✧

We can not really provide support for that if you choose to go down that route tho

As you’ll typically want to have your interactive content interact with the HTML/CSS around it, the typical approach is the other way around: bring your HTML + CSS into the local project, add the functionality that you need, and deploy it together to Glitch

ok so by passing an existing project, all the html data filled before the deploy would be deleted

by user 771724594846367796

good to know guys

by user 771724594846367796

If that is inside the public folder then yes

thank you guys

by user 771724594846367796

love from Italy :heart:

by user 771724594846367796