Skip to content

Heroku deployment and git repo #1950

Open
@AmirGilboa

Description

@AmirGilboa

Apologies for another newbie question.
I want to deploy to heroku, and i read that it's all based on git repo.
Just as you have your github or bitbucket "remote" (central storage), you define a new one that is heroku. and you are basically pushing your code, instead of to your regular remote, to the newly created heroku remote.
That is all good, but i don't really want all my code to travel to the production server.
I only want the 'dist' folder, the complied, transpiled, minified, etc, to be copied to the server.
How to achieve that?
Do i have to manage another git repo just for deployment?
How do i make sure the 2 repos will not mix and confuse each other?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions