SShortSingh.
Back to feed

Practical AWS EC2 Deployment Guide Tackles SSH, Docker, HTTPS, and Memory Issues

0
·1 views

A developer has published a hands-on Q&A reference guide drawn from real-world experience deploying two Node.js and Docker applications on AWS EC2. The guide addresses common SSH connection problems, including permission errors when using WSL on Windows and how to resolve them by moving key files to the native Linux filesystem. It also covers obtaining free HTTPS certificates without a custom domain using sslip.io with Certbot, and explains how to migrate to a real domain later. Docker-related issues such as disk space exhaustion and out-of-memory build failures are addressed, with fixes including disk resizing, swap space configuration, and Node.js heap size tuning. The resource is aimed at developers encountering practical deployment hurdles on EC2 instances rather than following a clean, step-by-step tutorial.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to Build a Secure, Production-Ready Custom REST API in WordPress

WordPress's built-in REST API allows developers to use the platform as a backend for applications, mobile clients, and external services beyond its traditional CMS role. Registering a custom endpoint requires careful attention to authentication, authorization, input validation, and error handling to make it production-ready. WordPress provides a dedicated permission_callback parameter to cleanly separate access control from the main callback logic, improving code clarity as APIs grow. Developers must also distinguish between validation and sanitization, enforcing type checks, value limits, and format verification on all incoming request parameters. Proper resource-level checks are equally important, ensuring authenticated users can only access data they are explicitly permitted to view or modify.

0
ProgrammingDEV Community ·

Ruby 4.0 Moves Pathname to Core; Improved Docs Coming in Ruby 4.1

Ruby 4.0 has promoted the Pathname class from a standard library to the language's core, making it more accessible to developers. Pathname offers a unified interface to methods spread across File, FileTest, Dir, and FileUtils, reducing the need to track which class or module handles which operation. A contributor has completed a full rewrite of the Pathname documentation, reviewed by Peter Zhu, which will ship with Ruby 4.1 later this year. The updated docs provide local descriptions and examples for each method, replacing the previous approach of linking out to underlying methods in other classes. A new class-level overview and a 'What's Here' section have also been added to improve navigability.

0
ProgrammingDEV Community ·

.NET 10 drops duplicate State.Message in JSON console logs, breaking some parsers

Microsoft's .NET 10 introduces a breaking change to JSON console logging, removing the duplicate rendered message previously found at State.Message in AddJsonConsole output. Parsers or scripts that relied solely on the nested State.Message property may now receive null values, even though the application continues logging normally. The top-level Message field remains the canonical source for the rendered log text, while State still retains structured values such as OrderId, Status, and the original format template. Microsoft notes that State.Message may still appear when its content differs from the top-level value, so parsers should read the top-level field first and treat the nested one as a fallback. Developers are advised to treat console JSON output as a versioned schema and add contract tests when upgrading runtimes, rather than relying on visual terminal checks alone.

0
ProgrammingDEV Community ·

Fresher lands AI-era job offer without LeetCode or leadership roles on resume

A recent graduate named Dhruv Jani shared how he secured a job offer in a competitive, AI-disrupted hiring market without traditional resume credentials like LeetCode practice or club leadership positions. He published his experience on DEV Community in August, detailing the unconventional path that led to his first professional offer. His journey included a difficult semester he nearly did not recover from, which shaped his approach to job hunting. Hackathons appear to have played a notable role in his strategy, based on the tags associated with the article. The post has sparked discussion among other early-career developers about what actually helps land a first interview today.