Hey guys, is anybody PULLING a front-end app on a ...
# seed
a
Hey guys, is anybody PULLING a front-end app on a SEED stage and deploy it with SST? I have some FE + SST backend… but my FE code lives in another repo. I was thinking to do a
git clone
from the
before_compile
step, based on recommendation from @Frank I think. Any ideas or examples?
f
Hey @Adrián Mouly, you probably need to setup an SSH Key for your organization. And then you will be able to check out private repos using the SSH git url format. You can read more about it here - https://seed.run/docs/adding-an-organization-ssh-key
a
Yeah got it to there also, thank you.
I have to add the Private to SEED and Public to Bitbucket?
f
Yup!
a
Thanks, going to try.
Got the GIT integration working 🙂.
Now, not sure if I have to put the full path on the clone…
Copy code
- git clone -b sandbox <mailto:git@bitbucket.org|git@bitbucket.org>:myrepo.git /tmp/seed/source/frontend/
Not sure if should put
/tmp/seed/source/frontend/
or
/frontend
.
I mean, for the destination.
f
Yeah, the working directory for the command is the root of the repo, so
/tmp/seed/source/frontend
and
frontend
should have the same behavior.
/frontend
would be outside of the repo directory.
a
Yeah worked, thanks.
@Frank this model worked very well, thank you for the ideas.
I have my FE getting deployed, even hosted on other repo.
NOW…. having this setup, means the FE is going to be deployed all the time? for each change?
I did a change on an API, then SST/SEED detected the change, and deployed those… but I didn’t modify the FE, and apparently is deploying it anyway.
Well now that I’m thinking… maybe I changed an SSM var….
f
@Adrián Mouly, sorry man, missed this yesterday
how many services do u have, and in which service r u deploying the frontend?