A pre-launch checklist for a vibe-coded web app

· 5 min read

Code written fast, with an assistant or from a tutorial, usually works on the first run. What it often does not do is protect itself, because nothing in the tutorial needed that. Before you post the link anywhere, spend half an hour on this list. The first half is security, the second half is search. Each item takes a minute or two to check.

Security

1. Debug mode is off

With debug on, a crash shows visitors a page of settings, file paths and code. Django has a built in check for this and several related problems:

python manage.py check --deploy

Run it with the same environment variables you use in production. Read every warning it prints. In FastAPI, check that you do not start the server with --reload or a debug flag in production, and turn off /docs and /openapi.json unless you need them.

2. No secrets in the repository

Open the repository and search for SECRET_KEY, password, token and api_key. Look at your .env files too. If a secret was ever committed, deleting it in a later commit does not help, because it stays in the history. Treat it as leaked: create a new key, change it in the service that issued it, and put the new value in the host's environment settings. You can search the whole history with:

git log -p --all -S "SECRET_KEY"

Pharos scans the live site for exposed files like /.env, but it cannot see secrets inside your code, so never commit them.

3. Dot files are not served

Open these addresses on your live site, replacing the host: /.env, /.git/config, /backup.sql and /db.sqlite3. Each one must answer 404, not show a file. This goes wrong when an app serves its whole folder as static files, or when the image was built from a folder that contained the file. A .dockerignore that lists .git, .env and your database files keeps them out of the image. The files the platform generates already skip .git and .env, but check yours if you wrote your own.

4. The admin is not wide open

Django's admin lives at /admin/ by default, and automated scanners try it within hours of a site appearing. You cannot hide it fully, so make it strong: a long unique password for every staff account, no accounts left from testing, and no default usernames like admin with a weak password. Staff accounts only for the people who need them.

For FastAPI and other frameworks, any admin or debug route you added for yourself needs a login too. Look through your routes for paths like /admin, /debug, /test and /metrics.

5. Hosts, origins and cookies

Set ALLOWED_HOSTS to the addresses your site really uses. Never leave * in place on a site with logins. If the site has a login or an admin, set SESSION_COOKIE_SECURE = True and CSRF_COOKIE_SECURE = True once the site answers on https, so cookies never travel in clear text.

6. Defaults and test data

Search for default passwords, demo accounts and test endpoints, and delete them. Check that the database does not hold real customer data from your testing. If your app takes sign-ups, send yourself a test email and make sure the password reset works.

7. Backups

Know where your data lives and how it comes back. On this platform the SQLite file sits in the app's persistent folder, nightly backups are kept, and one is taken before migrations. Make a note of what you would do if you deleted a table by mistake.

Search basics

8. Titles and descriptions

Every page needs its own title under about 60 characters and its own meta description between 70 and 160. Open your site and check the title of each page in the browser tab. If all of them say the same thing, fix the template. The Django guide and the FastAPI guide show how.

9. One h1, a lang attribute and a viewport tag

View the source of a page. Look for a single h1, <html lang="en"> and a viewport meta tag. Missing viewport means your site looks tiny on a phone, and a phone is where most visitors will be.

10. A canonical link

Each page should say which address is its main one. This stops ?utm_source= and trailing slash variants from competing with each other.

11. robots.txt and a sitemap

Visit /robots.txt and /sitemap.xml. The first should not contain Disallow: / unless you really want to hide the whole site. The second should list the pages you want found. Submit the sitemap in Google Search Console, which this guide explains.

12. A real 404, and https only

Visit a made up address. It should show your own not found page and the browser should report a 404 status. Then type http:// in front of your address and make sure you end up on https://. Open the page in a private window to check there are no warnings about mixed content.

Let the platform check it for you

Everything in the second half and several items in the first half are checked automatically for apps on Pharos. After each deploy, and again every week, the exposure scan probes your live site for debug pages, exposed files like .env and .git, open admin and docs pages and missing security headers. The Launch checklist on the app page covers titles, descriptions, the h1, canonical, Open Graph tags, robots.txt, the sitemap, the favicon, the http to https redirect, soft 404s and page size, with a one line fix for each. You can run a scan again by hand from the Security tab, up to three times an hour. See exactly what it checks.

These checks are advice from the outside, not a guarantee. A clean report does not mean the code is safe, so keep going through the list above yourself.

Start with a 14-day trial. A card is required to begin, and you pay nothing if you cancel before day 14. After that it is A$27 a month for one app.