Bring your code
How to start a product from code you already have. Import a GitHub repository or a ZIP, tick the authorisation sentence, confirm the parts Orkosi detected and choose where each one runs.
If you already have an application in a repository, you do not have to start from an idea. The Bring your code door of the start wizard imports your repository and uses it as it is: Orkosi reads it, detects its parts, asks you to confirm them and then hosts them. Nothing is rewritten or remade.
This guide is for code. If what you have is a website address and no repository, use the other door: see Move your website.
The three doors of the start wizard
When you create a product, the first step asks how you want to start.
| Door | What it does |
|---|---|
| Start a new business | You describe the idea. Orkosi builds the brand and the first pages. |
| Bring your website | You give the address of a site. Orkosi remakes it from its own code. |
| Bring your code | You give a repository. Orkosi never remakes it: every part is detected, placed and deployed. |
The doors correct each other. If you type a website address into the code door, or a GitHub repository into the website door, the wizard offers to switch to the door that fits.
Starting an import is for the owner and the admins of a workspace. A member or a viewer is refused.
Before you start
- The repository must hold something a web host can run: a server, a site that is built, a static site, a worker or a scheduled job. A mobile app, a library with nothing to start, or a repository with only documentation is refused with the reason and what to do instead.
- Orkosi needs to know how each part starts. A language manifest with a start command or a web framework is enough in most cases. A
Dockerfileat the root always works: a repository with a Dockerfile is built and run as its image. AProcfileor anorkosi.yamlthat names the parts and how each one starts works too. - Keep secrets out of the code. Files that store secrets, such as
.envfiles and private keys, are left out of the import and listed. A credential written inside a code file stops the import and names the file, never the value. Remove it, rotate it, and import again. You give the values later as config vars. - You must have the right to use the code. See the sentence you tick.
Import from GitHub
- In the start wizard choose Bring your code. Under Where is your code? stay on the GitHub tab.
- For a public repository, type it in the box as
owner/nameor paste its GitHub address. A public repository imports without a connection. - For a private repository, press Connect GitHub for private repositories. GitHub opens and asks which account and which repositories Orkosi may read. When you come back, the panel shows GitHub connected and lists Your repositories.
- Optionally type a branch or a tag in the second box. Left empty, the default branch is read.
- Tick the authorisation sentence.
- Press Import, or click a repository in the list.
If the connection does not complete, the panel says why, for example that the link expired or that your GitHub account has no access to that installation. Press the connect button again from the GitHub account that installed the app.
Import a ZIP
Use a ZIP when the code is not on GitHub.
- Zip the project folder without
node_modulesand without build output. - In the wizard choose Bring your code and open the ZIP tab.
- Choose the file under ZIP of your project.
- Tick the authorisation sentence.
- Press Upload and import. A bar shows the upload.
The archive is checked before anything is read. It is refused when it has too many files, when one file or the whole unpacked project is too large, when it is compressed in a way that looks like an attack, or when a path or a link points outside the project. The message says which check failed. Dependency folders, version-control folders and build leftovers are skipped in any case.
The sentence you tick
An import does not start until you tick this sentence, exactly as written:
I own or am authorised to use this repository and its code
Without the tick the import is refused. With it, Orkosi records the tick before the import starts:
- the date and time;
- your account and your workspace;
- the source: the repository name, or that it was an upload;
- the address and the browser the request came from;
- the sentence itself, word for word.
You are responsible for what you import. The Terms apply, and someone who believes their rights were infringed can use the takedown page.
While the import runs
The panel shows the name of the repository or the file, a status line and a progress bar. When the import is ready it shows a short summary: the stack, how many parts were detected, how many files were read and how many server routes were found, with any notes.
Under the summary, what was detected in your code is spelled out: one line per part with how it starts, its port and its health path, then what was read but is not hosted, then what to do next.
- If the import fails, the panel shows one sentence with the reason. Retry runs it again. Try another lets you pick a different repository or file.
- Remove discards a finished import so you can start over.
Confirm the architecture
Once the import is ready, the wizard shows What we found in your code: every part with its kind, its folder, its port, its health path and its start command.
| Kind | What it is |
|---|---|
| Frontend | A site that is built and then served. |
| Static site | Files served as they are. |
| Backend | A server that answers requests. |
| Background job | A worker that runs alongside the server. |
| Scheduled job | Something that runs on a schedule. |
| Custom | A part that fits none of the above. |
If no part was detected but the repository can be built, it is built from its root as one backend.
Where each backend runs
For every backend, background job and scheduled job the wizard asks where it should run, and marks one choice Recommended with the reason:
- Orkosi shared: a function per backend, scaled per request, with no fixed cost. Recommended for ordinary request and response traffic.
- Rented machine: your own machine behind its reverse proxy, always on. Recommended for code that fits a function badly, such as long-running processes.
A rented machine is a paid resource. Its cost is shown where you rent it. See Machines & databases and /pricing. You can change a placement later on Hosting › Architecture.
The database
The last choice of the panel is the database:
| Choice | Meaning |
|---|---|
| No database | The code needs none. |
| New database on our cell | A new, empty database on the shared Orkosi database servers. |
| Rent a database | A database of your own, as a paid resource. |
| Import a dump after launch | You bring your existing data once the product is running. |
When a database was found in the code, a new database on our cell is preselected.
Press Confirm the architecture. The button then reads Architecture confirmed, and the review step lists the repositories, the parts with their placement and the database. It also says: used as it is, nothing is remade, no brand is asked. A logo and colours are optional for a code product and can be added later on Brand › Brand kit.
What Orkosi does with your repository
From GitHub
- Your repository stays where it is, on your GitHub account, and becomes the repository of the product.
- The default branch deploys both environments until you set a production branch on Hosting › Architecture.
- Where the connection allows it, Orkosi adds a webhook for pushes to the repository.
From a ZIP
- A new private repository is created for the product in the Orkosi GitHub organisation, and your files are committed to it as they are.
In both cases
- A place for the built images of the product is created, and each confirmed part is registered with its name, kind, folder, port, health path, start command and placement.
What Orkosi does not add to a repository you connected: no brand file, no instruction files for AI agents, no client configuration files, no template version stamp, no code-owners file, no branch protection and no workflows. The rules of your repository stay yours.
After the launch
- Give the variables their values. The detection lists the variables the code needs before the first deploy. Set them on Hosting › Config vars (owner and admin only). See Config vars.
- Watch the first deploy on Hosting › Builds and Hosting › Deploys. See Builds, pipeline, logs and jobs and the deployment guide.
- See and change the parts on Hosting › Architecture: add a repository, add a component, add a database or attach a machine. See Architecture.
- Connect your address on Hosting › Domains. See Custom domains.
When the import is refused
| What the panel says | What to do |
|---|---|
| The repository is a mobile app | Import the repository of its backend, or add a web build and import again. |
| The repository is a library with nothing to start | Add how it starts (a start script, a Procfile or a Dockerfile), or import the repository of the application. |
| There is no builder for this stack | Add a Dockerfile at the root, or an orkosi.yaml that names the parts and how each one starts. |
| No application code was found | Import the repository, branch or folder that holds the code. |
| We could not tell how this repository runs | Add a Dockerfile, a Procfile or an orkosi.yaml. If the application is in a sub-folder, name the folder there. |
| A secret was found in a file | Remove the credential from the file, rotate it, and import again. |
| Give the repository as owner/name | Type the owner and the name with a slash, or paste the full GitHub address. |
If the message does not tell you enough, open /support.