All guides

Hosting your Node.js application in Algeria: deploy from GitHub

Connect your repository once and choose the build and start commands: on every git push, your application updates itself, with no FTP and no server to administer.

SaharaCloud team · Published on 20 October 2026

Screenshots of 20 October 2026: panel interface in English, demonstration repository and fictitious names.

You built your application with Node.js, Next.js, Express or Laravel, and your code lives on GitHub? Put it online without FTP, without a server to administer and without an international bank card. Connect your repository once: on every git push, your website updates itself.

That is what Sahara Pro and Sahara Business hosting allow. Your application runs continuously, without going to sleep, on your own domain name, and you pay in dinars by Edahabia or CIB card or by CCP deposit.

Why deploy from GitHub

  • No more file transfers. No need to zip, upload over FTP and unzip. Your repository is the single source of truth.
  • One update = one push. Fix, push to main: the deployment starts automatically.
  • No risk of breaking the live website. If the build fails, the new version is not activated: your visitors keep seeing the previous version, which works.
  • Your application stays on. The Node.js server is restarted automatically if it stops, and restarted on every new deployment. No SSH session to keep open.
  • A real server, not just a static website. Express API, Next.js server rendering, background tasks: your backend answers all the time.

What you need

  • A Sahara Pro or Sahara Business hosting plan. These are the plans that include Node.js and SSH access. Sahara Pro hosts up to three websites: ideal to keep your application separate from your business website. See the plans.
  • Your code on GitHub, with a package.json that contains your build and start scripts.
  • Your domain name. With a 12- or 24-month commitment, the domain is free for the first year for eligible extensions. Search for a domain.

Connect your GitHub account

In your hosting panel, open GitHub connection then Connect GitHub. GitHub asks you which repositories to share: we recommend allowing only the ones you want to deploy. Your repositories then appear in the list, public and private.

Choose your repository and the build command

Click Deploy next to the repository, choose your website, then the branch to publish, usually main.

Choosing the repository, the branch and the build command

In Build script, enter the command that installs your dependencies and builds your project:

Your project Build script
npm npm install && npm run build
pnpm npx pnpm@10 install --frozen-lockfile && npx pnpm@10 build
Laravel composer install --no-dev --optimize-autoloader

Use the package manager and the version set in your project: if your package.json says "packageManager": "pnpm@10…", keep pnpm 10.

Leave Auto deploy on push enabled so that every push updates your website.

Publish directory is only for fully static websites, such as a built Vite or React project: enter the folder produced by the build, for example dist. For an application with a server (Next.js, Express), leave this field empty.

Start your Node.js application

Open Worker processes, then Configure and Node.js:

  1. Node.js version: choose a version compatible with your project. Next.js 16, for example, requires Node.js 20.9 or later.
  2. Startup command: the command that starts your server.
  3. Working directory: deploys/current, the folder of the live version.
  4. HTTP Proxy: enabled, with an empty Path to serve the whole website.
  5. Port: the port your application listens on, for example 3000.
Starting the Node.js application: version, start command and port

Your application must listen on 0.0.0.0 and on the chosen port:

Your project Startup command
Next.js npx next start -H 0.0.0.0 -p 3000
Express node dist/server.js, with app.listen(3000, "0.0.0.0") in your code
Nuxt, Remix, Astro SSR… your project’s start command, on the chosen port

Click Launch: a few seconds later, your application answers on your domain.

Follow your deployments

Each deployment appears with its commit, its date and its full log. If something goes wrong, View logs shows exactly which line failed: a missing dependency, the wrong Node.js version or a script that cannot be found.

Deployment history and detailed log

You can also redeploy a version at any time with Deploy now.

Your environment variables and secrets

Never put your keys in GitHub. Create a .env file on the server, outside the public folder, with the file manager or over SSH, and load it in your application, for example with dotenv or Node.js’s --env-file option. Your Supabase, Stripe or Resend keys stay private that way.

A simple rule: one website, one source

A website shows one source at a time: your GitHub application, a Sahara AI website or a WordPress. If you start a Node.js application on a website that already shows WordPress or Sahara AI, the application takes its place, even if the old files stay on the disk.

To run both side by side, use another website in your plan (for example app.yourdomain.com for the application and yourdomain.com for the business website), or serve your API on a specific path such as /api by filling in Path.

Frequently asked questions

Does my application go to sleep if nobody visits it? No. It runs continuously and answers from the first request, unlike free tiers that fall asleep after a few minutes of inactivity.

Can I use TypeScript? Yes. Compile your code in the build script (tsc, next build, vite build…), then start the compiled version.

What if I prefer working over SSH? SSH and SFTP access is included with Sahara Pro and Business. You can combine both: GitHub for the code, SSH for one-off tasks.

Is my website backed up? Yes, automatically. After a restore, simply restart your application from Worker processes. Data hosted by an external service such as Supabase is backed up on that service’s side.

I am building for a client: who owns the hosting? Your client, if you create the account in their name. They pay and renew themselves, and you keep technical access with your SSH key.

Put your application online today

Connect GitHub, push your code and let SaharaCloud take care of the rest. Payment in dinars, support in French and Arabic.

Choose Sahara Pro

To maintain your application, also read our update on the November 2026 Node.js security fixes (in French).

To continue

Prix d’un site web en Algérie : budget et frais à prévoir Sahara AI Compare hosting plans with Sahara AI
Sahara Cloud

We use cookies that the site needs to work. With your consent, we also use cookies to measure our audience, analyse your interactions with Microsoft Clarity and measure the effectiveness of our advertising. Privacy policy

Necessary: sign-in, cart, security and remembering your choice. Always on.