
Deploy Any Node.js App 24/7 for Free on Oracle Cloud — Complete Guide
Oracle Cloud Free Tier Oracle gives you a free VM forever (not a trial): ARM Ampere A1 — 4 cores, 24GB RAM 200GB block storage 10TB/month bandwidth This is enough to run multiple production apps. Setup 1. Create Account Go to cloud.oracle.com and sign up. You need a credit card for verification but won't be charged. 2. Create VM Shape: VM.Standard.A1.Flex (ARM) Image: Ubuntu 22.04 or 24.04 Add your SSH key 3. Install Node.js curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt install -y nodejs 4. Upload Your App scp -r ./my-app user@your-vm-ip:~/my-app 5. Create systemd Service sudo cat > /etc/systemd/system/myapp.service << EOF [Unit] Description=My Node.js App After=network.target [Service] Type=simple User=ubuntu WorkingDirectory=/home/ubuntu/my-app ExecStart=/usr/bin/node app.js Restart=always RestartSec=5 [Install] WantedBy=multi-user.target EOF sudo systemctl daemon-reload sudo systemctl enable myapp sudo systemctl start myapp 6. Check Status sudo systemctl
Continue reading on Dev.to Tutorial
Opens in a new tab



