Sign up Log in
n/os · 18d ago · Edited · 1.3k views
u/hakdMaster
n/osu/hakd · 18d ago

New free 2GB RAM container Uppcoder: hands-on Node app deployment, SSH support, registration still open (with custom-source AFF)

Last month I was searching on YouTube and found a free container called Uppcoder—it offers one free Stack. And the specs they give are pretty generous.

The official site lists the free Spark tier at €0/month, free forever, status Active:

  • 1 Stack: 1 always-on app stack, including 1 database
  • 2GB RAM, 2GB disk (per Stack)
  • 500 CPU seconds per day (per Stack)—i.e., 1 second at 100% CPU counts as one; most of the time you won't hit 100% CPU anyway.
  • Always online, no sleep: both the panel and pricing page say "1 always-on stack", and there's no sleep warning.
  • In-browser editor, terminal, SSH: included in the free tier too
  • Automatic TLS certs: deployed apps get HTTPS out of the box, but the free tier doesn't allow custom domains—you have to use the domain they give you.
  • Nightly backups: also included in the free tier. Each app's files and database are backed up daily to another server, keeping one daily backup for the last 7 days and one weekly backup for the last 4 weeks.

Per Uppcoder's official supplementary terms:
Section 7.1 of the Terms of Service explicitly says you can't run tunnels or proxies on it. VPNs and tunnels are not allowed on Uppcoder; otherwise such apps will be automatically stopped and the account closed.

Usage on the free tier:

The free tier itself costs nothing and won't auto-charge you. Signing up, email verification, deploying and deleting Stacks back and forth are all free, and there was no card-binding or anything like that, so for now you can relax. That said, the platform is very new—it only launched in mid-October 2026—so whether it's stable remains to be seen.

I messed around with it for a long time before I finally got a Node project deployed and the frontend accessible. The annoying part is the site has very little documentation, so it was all trial and error. Here's the whole process, so you can avoid the pitfalls (I've already stepped in all of them for you).

  1. Sign up. I won't say much about this step. I'd suggest just using GitHub directly—otherwise you'll sign up with email and then still have to link GitHub, so you might as well do it in one step.

  2. Create a Stack. The first Stack is free; if you want to create more later, it's paid.
    Here you can choose Next.js and Express, which support Node—of course you can also choose something like Jam.py for Python; it's up to you. My project is just basic Express, so I picked Express + SQLite.
    QQ_1794313569341

  3. Configure the Stack; just follow the screenshots. One thing to note: I chose Express + SQLite above, so by default there's an Express component to configure, and SQLite is an optional config item. If needed, you can pick the corresponding database item on the right—everything highlighted on the right is a selectable database. Don't let the word SQLite throw you off; you can even choose MySQL, PGSQL, etc. as the database. Which one to pick mainly depends on which database your project integrates. My project uses SQLite integrated by default in Node, so I didn't select a database plugin.
    Here's the project I deployed for reference (feel free to hit Start and Fork):
    https://github.com/hakd-code/gallery.git
    QQ_1794314044558

  4. Click Deploy in the upper right to deploy, wait a bit and it'll be done. You'll get an email when it's finished. The screenshot below shows what it looks like after a successful deployment.
    QQ_1794314619268
    At this point, when you click to visit the site, you'll find the frontend returns an nginx 502—basically, it's not connecting. This is where I fumbled around for ages, checked a bunch of docs, and asked AI a lot of questions before finally getting it working.
    QQ_1794321155054

  5. From the screenshot above, open the web SSH version. There you can directly SSH into the whole Stack container.
    QQ_1794314829994
    I found that even running npm start here, the frontend still wasn't accessible. It wasn't until I stumbled into the logs directory and read all the log output that I found the basic entry point. When this Stack starts, it looks for an index.js file and listens on port 8000.
    QQ_1794315074743
    Kept digging and found /opt/start-scripts/start-express.sh, the main file when the container starts. After reading the source carefully, I found the startup script's logic is very clear, and the platform itself has a dedicated custom startup hook!

From the start-express.sh source, you can see two core mechanisms:

  • Custom entry point has highest priority: lines 38–41 of the script state that as long as /home/uppcoder/app/startup-app.sh exists, it skips node --watch index.js below and runs your startup-app.sh instead.
  • Port env var is APP_PORT: the platform expects your app to listen on ${APP_PORT:-8000} by default (i.e. port 8000), while my server.js reads process.env.PORT and uses port 3100.
start-express.sh script contents, take a look if you're interested
#!/bin/bash
# =============================================================================
# Start Express.
#
# Express is a BACKEND: it has no /api proxy to generate, it is the thing other
# tiers proxy AT. What it needs from service discovery is the other direction --
# the database it was composed with.
#
# Nothing can pre-install a database client, because a combination expressed as
# a template row does not know its database until it is provisioned and the
# platform offers 21 of them. So the connection string's SCHEME decides, and
# the client is installed on first start and written into package.json.
# =============================================================================
set -eo pipefail

APP_DIR="${APP_DIR:-/home/uppcoder/app}"

_START_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=lib-service-discovery.sh
. "$_START_DIR/lib-service-discovery.sh"

main() {
    cd "$APP_DIR"

    if ! command -v npm >/dev/null 2>&1; then
        echo "ERROR: npm not found. No Node.js environment available." >&2
        ls -1 /opt/pixi/.pixi/envs/ 2>/dev/null >&2 || true
        exit 1
    fi

    if [ ! -d node_modules ]; then
        echo "Running npm install..."
        npm install
    fi

    ensure_node_db_client

    if [ -f "$APP_DIR/startup-app.sh" ]; then
        echo "Running user startup command..."
        exec bash "$APP_DIR/startup-app.sh"
    fi

    # 🚨 --watch, because an agent's edit has to take effect without anybody
    # knowing to restart anything.
    #
    # This was `exec node index.js`, which made Express the ONLY framework here
    # that does not reload: every sibling runs a dev server that does (npm run
    # dev for vite/next/nuxt/astro/svelte/preact/react/vue, npm run start:dev
    # for nest, uvicorn --reload for fastapi).
    #
    # Measured 2026-09-11 on a builder project: the agent wrote correct routes
    # at 11:58:28 against a process started 11:57:46, so the app kept serving
    # the pre-edit file. A 404 on a route that is plainly in the source reads as
    # a broken build -- and the agent then spent turns "fixing" Express 5
    # routing and, on an earlier run, unset DATABASE_URL and started its own
    # database, because the evidence in front of it said its code was not
    # running. It was not; nothing had restarted it.
    #
    # Stable since Node 22 (the fullstack-node env ships 22.13). Fall back if
    # the runtime is older, so a changed pixi env cannot leave a dead app.
    # 🚨 NOT `node --watch --eval ""` -- node refuses that combination outright
    # ("either --watch or --eval can be used, not both", exit 9), so the probe
    # failed on a runtime that supports --watch perfectly well and every app
    # silently took the fallback. Ask whether the flag EXISTS instead.
    if node --help 2>/dev/null | grep -q -- "--watch"; then
        echo "Starting Express on port ${APP_PORT:-8000} (watching for changes)..."
        exec node --watch index.js
    fi
    echo "Starting Express on port ${APP_PORT:-8000} (no --watch on $(node -v))..."
    exec node index.js
}

if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
    main "$@"
fi
  1. Once you understand how the Stack runs from the above, solving the problem is easy.
    Either write a startup-app.sh that starts the project directly, or rename the project's server.js to index.js and make it listen on port 8000 by default when the project starts. Both approaches work.

  2. I wrote a startup-app.sh myself.

# 写入startup-app.sh文件
cat << 'EOF' > /home/uppcoder/app/startup-app.sh
#!/bin/bash
export PORT="${APP_PORT:-8000}"
exec npm install
exec npm run seed
exec npm start
EOF
# 给文件添加执行权限
chmod +x /home/uppcoder/app/startup-app.sh
# 重启框架模块
supervisorctl restart framework
  1. Visited the project URL again and it works now.
    Screenshot share: https://px331bi9-express-pic.apps-5.websson.cloud/
    QQ_1794315811680

  2. Adding the SSH part.
    This container supports SSH. Besides the origin's web SSH mentioned above, you can also connect with your own SSH tool.
    First, create a key for SSH in the settings section. After creating it, the file will usually be downloaded automatically to your computer—on Windows it generally goes to your Downloads folder, so go find it yourself.
    QQ_1794319936039
    Find the corresponding SSH block in Stack; it tells you exactly how to SSH. You can absolutely copy that string of info and run it directly in PowerShell on Windows, but it'll most likely throw an error. That's because the file you downloaded has permissions that are too broad—the system requires you to restrict it to read-only for the current user.
    QQ_1794320269938

So the best way is to upload the downloaded uppcoder_20261109-161014_ed25519 file (filenames differ by user and generation time—change it to your own filename here) to your Linux system, which makes permission control easier. For example, I uploaded mine to /root under the WSL Ubuntu 22.04 subsystem on Windows, gave it 600 permissions first, then used the string SSH gave me with the filename corrected, and SSH worked perfectly.

root@IWKPC:~# ls
uppcoder_20261109-161014_ed25519
root@IWKPC:~# chmod 600 uppcoder_20261109-161014_ed25519
root@IWKPC:~# ssh -i uppcoder_20261109-161014_ed25519 -o StrictHostKeyChecking=accept-new -p 2222 [email protected]
Warning: Permanently added '[px331bi9-express-pic.apps-3.websson.cloud]:2222' (ED25519) to the list of known hosts.

Environment: web-express

Two pixi environments available:
  default      - System tools      | add <pkg>, remove <pkg>
  web-express  - Framework packages | pixi add <pkg>

Quick commands:
  add vim            # Install vim
  pixi add numpy     # Add numpy to your app
  supervisorctl      # Manage services

uppcoder@uppcoder:~/app$ ls
README.md  docs      node_modules       package.json  pixi.toml  server.js  startup-app.sh
data       index.js  package-lock.json  pixi.lock     public     src        tests
uppcoder@uppcoder:~/app$

Summary:
Since there's no documentation, it was all trial and error. Fortunately, I've now figured out how the project runs.
The start-express.sh file is the execution entry point, and you can do a lot of things there—including setting up nodes and whatnot—but I don't recommend it, since you might get your account deleted.
Different projects may have different entry points. This guide mainly uses Express + SQLite as an example. If you want to know how a project loads, just check the corresponding logs and it'll be clear.

Uppcoder signup link (includes custom-source AFF, to help identify the referral source):
#AFF https://portal.uppcoder.com/?utm_source=nodeloc&utm_medium=tutorial&utm_campaign=hakd

Demo Node project URL (feel free to use, Start, Fork):
https://github.com/hakd-code/gallery.git

Translated by AI from 简体中文

126
28
Log into join the discussion.

28 replies

Sort order
  1. tufei Diamond 18d ago

    Very detailed tutorial, thanks for sharing, boss.

    Translated by AI from 简体中文

    2
  2. deephub Gold 18d ago

    I just set up a tunnel directly, works fine, and it doesn't burn many core-hours either

    Translated by AI from 简体中文

    2
  3. hakd Master OP 2 YEARS 17d ago

    If I do the hole punching, I'm worried my account will get nuked.

    Translated by AI from 简体中文

    1
  4. only Silver 3 YEARS 17d ago

    Where's this node located?

    Translated by AI from 简体中文

    0
  5. Rison Diamond 3 YEARS 18d ago

    Detailed tutorial — always love seeing you pros go all out tinkering.

    Translated by AI from 简体中文

    1
  6. hakd Master OP 2 YEARS 14d ago

    Talked with the boss at Uppcoder and got a custom promo link from NL set up, with my forum ID tagged on it too.
    Right now I'm just helping push the AFF promo, not making anything off it. That said, their stuff is genuinely fun to mess around with for testing — the ssh + plugin integration in particular is a pretty neat idea.

    Translated by AI from 简体中文

    1
  7. songnilikai8 Gold 18d ago

    Let's see what we can do

    Translated by AI from 简体中文

    0
  8. Cravingrain Silver 18d ago

    Let me throw one together and give it a try

    Translated by AI from 简体中文

    0
  9. tianlanga 18d ago

    Pretty detailed tutorial.

    Translated by AI from 简体中文

    0
  10. wghdi Gold 17d ago

    Thanks for sharing, boss!

    Translated by AI from 简体中文

    0
  11. SnappyBrook18 Silver 17d ago

    Thanks for sharing :04-zan:. There's so much free stuff out there, I can't keep up with it all.

    Translated by AI from 简体中文

    0
  12. yongheng Gold 2 YEARS 17d ago

    Thanks, I'll go take a look.

    Translated by AI from 简体中文

    0
  13. zzhzhou Silver 3 YEARS 17d ago

    Nice, the details are explained really well.

    Translated by AI from 简体中文

    0
  14. iop Gold 17d ago

    Very detailed, I'll take a look.

    Translated by AI from 简体中文

    0
  15. shoock_jio Silver 17d ago

    That works, thanks

    Translated by AI from 简体中文

    0
  16. marisn Gold 2 YEARS 17d ago

    Instant ban

    Translated by AI from 简体中文

    0
  17. huhuhuhuhuhu_huhuhu Gold 17d ago

    Found someone in the same boat as me. Spent half an hour on it, then got banned. Tried a Python proxy, couldn't connect, and then a few minutes later got banned again.

    Translated by AI from 简体中文

    0
  18. hakd Master OP 2 YEARS 16d ago

    If you're doing hole punching, that'll probably get blocked too. So for normal use, it's still pretty good.

    Translated by AI from 简体中文

    0
  19. kproton Gold 17d ago

    Thanks for sharing, much appreciated!

    Translated by AI from 简体中文

    0
  20. aion Platinum 2 YEARS 17d ago

    This is awesome, though I doubt it'll last long.

    Translated by AI from 简体中文

    0
  21. 965_worker Gold 17d ago

    Thanks for sharing!

    Translated by AI from 简体中文

    0
  22. zcecho1234 Silver Never leave, never forsake 16d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  23. jackb Gold 16d ago

    Thanks boss, I'll take a look and see.

    Translated by AI from 简体中文

    0
  24. jiumei Silver 16d ago

    Been using it for ages already.

    Translated by AI from 简体中文

    0
  25. poin Silver 14d ago

    Research

    Translated by AI from 简体中文

    0
  26. jkn Bronze 14d ago

    Spark being permanently free with 2G of RAM is a solid deal. Noted that the official word is you can't run a tunnel proxy on it — good to know, since it's exactly what I'd use for deploying Node apps.

    Translated by AI from 简体中文

    0
  27. simplesue Silver 8d ago

    Got insta-banned today. I had a random idea to drop a magpie magpie in there, and it got deleted instantly, instant ban too。。。。 😂

    Translated by AI from 简体中文

    0
  28. TsriGero Silver 7d ago

    Turns out I can't even use Docker projects here

    Translated by AI from 简体中文

    0