Skip to content

How to self host components and publish to npm #4707

Answered by debs-obrien
debs-obrien asked this question in FAQ
Discussion options

You must be logged in to vote

Self-Hosted a Scope

The easiest way to export your components is to host them on the Bit Cloud. However if you prefer to host them yourself you can do so by creating your own server.

Creating your own Server

To create your own remote server you can run the bit init --bare command. This will create a bare version of Bit.dev that you can use to host your own components.

mkdir my-server
cd my-server
bit init --bare

Start your Server

To start your server you can run the bit start command.

bit start

This will open up the server on the available port eg. http://localhost:3001. You will notice that it is an empty remote scope as no components have been exported yet.

Update your Default Scope

In …

Replies: 9 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@The-Poe
Comment options

@sbland
Comment options

@EL-MEHDI-ESSAADI
Comment options

Answer selected by debs-obrien
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@debs-obrien
Comment options

@pgangwani
Comment options

@itaymendel
Comment options

@jonparkdev
Comment options

@itaymendel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zilinglong
Comment options

@itaymendel
Comment options

Comment options

You must be logged in to vote
1 reply
@Akiagari-ua
Comment options

Comment options

You must be logged in to vote
1 reply
@AlexThurston
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet