# How to deploy in own server , If i want to add new block in makecode

**URL:** https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764
**Category:** Help
**Created:** [April 21, 2020, 8:36pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764 "2020-04-21T20:36:27Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 21, 2020, 8:36pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/1 "2020-04-21T20:36:27Z")

</div>

I want to add new block in makecode and wanted to deploy it , so how can i do it .

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [April 21, 2020, 8:45pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/2 "2020-04-21T20:45:19Z")

</div>

What editor are you using? You can create an extension and define new blocs in there.

> **[Custom blocks](https://makecode.microbit.org/blocks/custom)**
>
> This page provides a short introduction to defining your own blocks in MakeCode.

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 21, 2020, 9:00pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/3 "2020-04-21T21:00:50Z")

</div>

no no , i made a new code for a block , and wanted to add it and then deploy it in the server .

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 21, 2020, 9:14pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/4 "2020-04-21T21:14:10Z")

</div>

Hello @Peli, Thanks for your quick reply. Trust you are keeping well and safe. The tutorial share by you helped me understand a part of my problem to create a custom block. But I’m stuck at deploying the makecode on my custom domain and for my own custom board simulation and programming. Any leads on how to do that?

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [April 21, 2020, 9:25pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/5 "2020-04-21T21:25:24Z")

</div>

See [https://makecode.com/cli/staticpkg](https://makecode.com/cli/staticpkg)

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 22, 2020, 7:50am UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/6 "2020-04-22T07:50:17Z")

</div>

I didn’t get those stuffs very well , How could i deploy it.

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 22, 2020, 10:34am UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/7 "2020-04-22T10:34:01Z")

</div>

This process only help me to run in local server , but i have to deploy in google VM.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [April 22, 2020, 2:15pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/8 "2020-04-22T14:15:25Z")

</div>

Sorry we’re not familiar with google VM. staticpkg generates a flat file web site that you can run with a simple web server. What are you trying to do?

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 22, 2020, 4:26pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/10 "2020-04-22T16:26:21Z")

</div>

Ok i am not aware of staticpkg , ok now can please provide me any tutorial or anything so that i can deploy that codemaker code from github on my server not local .

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 22, 2020, 9:10pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/11 "2020-04-22T21:10:49Z")

</div>

can you please suggest?

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [April 22, 2020, 10:05pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/12 "2020-04-22T22:05:55Z")

</div>

@kunal614 the output of staticpkg can be served with any static web server. Documentation on how to set up a static webserver is outside MakeCode’s scope and depends on how you’re hosting the website.

I’d suggest looking for a tutorial on how to serve a static website in a google vm and then just dump the output of staticpkg into the public directory

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [April 27, 2020, 10:02pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/13 "2020-04-27T22:02:57Z")

</div>

sir you said to dump all the files, pxt , pxt-common packages and pxt-maker for static hosting , but in here what about modules like pxt , npm , It automatically takes ?

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [April 27, 2020, 10:27pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/15 "2020-04-27T22:27:52Z")

</div>

Follow [https://makecode.com/cli/staticpkg](https://makecode.com/cli/staticpkg)

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [May 1, 2020, 10:22pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/16 "2020-05-01T22:22:09Z")

</div>

Sir last help please , I have created static website of this but how to run , I mean i have ine domain  
www.makecode.papercircuit.in  
But how should i run static file  
www.makecode.papercircuit.in/built/packaged , like this?

---

<div class="post-metadata">

### Author: ![Kunal614](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kunal614/32/855_2.png) [@Kunal614](https://forum.makecode.com/u/Kunal614)
#### Post date: [May 11, 2020, 4:13pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/17 "2020-05-11T16:13:44Z")

</div>

Sir thank for helping me , I have one last issue  
1st one , what is the main file i have to run during deployment?  
2nd one , I asked in stackover flow [https://stackoverflow.com/questions/61623242/how-to-serve-static-file-in-google-vm-bucket-server](https://stackoverflow.com/questions/61623242/how-to-serve-static-file-in-google-vm-bucket-server)

3rd one , I also run static file in git hub but it also create problem with assertion , it says assertion denied.

 ![Screenshot from 2020-05-07 01-12-02](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/c424f4ce1eb968abf3fa596d173037f38bcaad08.png)

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 11, 2020, 6:36pm UTC](https://forum.makecode.com/t/how-to-deploy-in-own-server-if-i-want-to-add-new-block-in-makecode/1764/18 "2020-05-11T18:36:18Z")

</div>

There is a regression with the compiler in maker currently.
