A lot of deploy-day trouble is not code. It is a file mode, a .env line, a Dockerfile habit or a version range that means one thing to you and another to the tool reading it. Here are nine of those questions, each with a short answer and a page that checks your own file. All nine pages run in the browser and send nothing you paste anywhere, which matters when you are pasting a .env with real secrets in it.

1. Why is my .env password cut off at the # sign?

In a .env file a # starts a comment even in the middle of an unquoted value, so PASSWORD=abc#123 is read as abc. Quote it: PASSWORD="abc#123". Two quieter traps: an unclosed quote becomes part of the value, and a key that appears twice keeps its last value with no warning. The .env File Validator reads the file the way the dotenv package does (checked against dotenv on 401 test files) and flags each problem with its line number.

2. What do chmod 755 and 644 actually allow?

Each digit is a sum: read is 4, write is 2, execute is 1. So 755 is rwxr-xr-x: the owner changes the file, everyone else reads and runs it. 644 is rw-r--r--, which suits ordinary files such as web pages, images and configuration. 777 lets every user on the machine change or replace the file. The Chmod Calculator converts between the number, the ls -l letters and a command you can copy, and shows what a umask does: 022 gives 644 files and 755 folders.

3. Why is my file still tracked after I added it to .gitignore?

A .gitignore only affects files git is not tracking yet. Run git rm --cached with the path, commit, and the rule applies from then on; the file stays on your disk. A related trap: !logs/keep.txt after logs/ never works, because git does not look inside an ignored folder. Write logs/* instead. The .gitignore Generator merges any of its 61 GitHub templates, and its Test paths box tells you which line ignored or kept each path.

4. Will my commit message pass commitlint?

The header is type(scope): description, at most 100 characters, with a lower-case first letter and no full stop. feat: Add login fails the subject-case rule; feat: add login passes. The Conventional Commit Checker runs the twelve rules of @commitlint/config-conventional and names the version bump: fix is a patch, feat a minor, and ! or a BREAKING CHANGE footer a major.

5. Will ^0.2.3 pick up 0.3.0?

No. Below 1.0.0, npm treats the first non-zero number as the major version, so ^0.2.3 means >=0.2.3 <0.3.0, and ^0.0.3 allows only 0.0.3 itself. Two more that catch people: 1.10.0 is newer than 1.9.0, and 2.0.0-beta.1 does not match ^1.0.0. The Semver Checker marks each pasted version against a range and sorts the list; its answers were checked against node-semver over more than 3,000 comparisons.

6. What is hadolint complaining about in my Dockerfile?

Three common ones: DL3008 (apt-get packages without versions, so each build may install something different), DL3002 (the last USER is root) and DL3009 (apt lists left in the layer). Delete /var/lib/apt/lists/* in the same RUN; deleting it in a later RUN saves nothing. The Dockerfile Linter applies the 55 DL rules of hadolint 2.12, tested against the real binary on more than 80 Dockerfiles.

7. How do I turn a docker run command into a compose file?

Each flag maps to a key: -p to ports, -e to environment, -v to volumes, --restart to restart, and -it to stdin_open plus tty. -d and --rm have no key at all. A --network from docker run becomes a network marked external: true, because it already exists. Quote your ports: some YAML readers turn 22:22 into 1342. The Docker Run to Compose Converter reads more than 70 flags and lists every flag it could not carry over instead of dropping it silently.

8. Why does my React app 404 on refresh behind nginx?

nginx looks for a file matching the address, such as /settings, and finds none. try_files $uri $uri/ /index.html serves index.html for every path that is not a real file. A second trap: an add_header inside a location replaces every add_header from the server block, which is why security headers go missing on some pages. The Nginx Config Generator writes a commented server block for a reverse proxy, static site, single-page app or redirect. Run sudo nginx -t before you reload.

9. How do I move a cron job to a systemd timer?

30 2 * * 1-5 becomes OnCalendar=Mon..Fri *-*-* 02:30:00, and the command becomes ExecStart= in a .service file. Every 15 minutes is *:0/15; the last day of the month is *-*~01. One real difference: when a cron line restricts both the day of month and the day of week, cron runs when either matches, while systemd needs both. The systemd OnCalendar Tester shows the next 5 runs and writes the .timer and .service pair; its results match systemd-analyze calendar from systemd 255.

If a tenth question keeps biting you, leave it in the comments. I wrote this with AI help; every rule and number above is taken from the linked page, and each page lists its own sources.