# Trellis nginx 404 on deploy

**URL:** https://discourse.roots.io/t/trellis-nginx-404-on-deploy/5093
**Category:** trellis
**Created:** 2015-10-22T13:37:46Z
**Posts:** 3

## Post 1 by @chrisk2020 — 2015-10-22T13:37:47Z

Hi Having used sage and bedrock for a bit I’ve added trellis to the mix for a project and am having some teething issue with deploy to a DO droplet. After running → ansible-playbook -i hosts/staging server.yml everything appears fine in the terminal. then run ./deploy.sh mysite mysitename everything is good.

When I try to visit mysitename howerver all I’m getting is an nginx 404

if I ssh in I can see that bedrock is installed at /srv/www/mysitename/current

and what looks like an uncompiled version of the sage theme is at

/srv/www/mysitename/current/web/app/themes/sage

any pointers - even on how to start to debug this?

---

## Post 2 by @chrisk2020 — 2015-10-22T15:02:11Z

Sorry to respond to my own question. As is the way of things I destroyed the droplet and started again and everything is A-OK.

I added in the project\_pre\_build\_commands from the [https://github.com/roots/roots-example-project.com/blob/master/ansible/group\_vars/staging](https://github.com/roots/roots-example-project.com/blob/master/ansible/group_vars/staging)

do I need these - or are those commands outdated - seems to work, but the docs/ gitub repo it’s unclear what the up-to-date process is.

---

## Post 3 by @swalkinshaw — 2015-10-22T15:47:05Z

They are currently [outdated](https://github.com/roots/roots-example-project.com/issues/31).

See this [post](https://discourse.roots.io/t/deployment-with-the-new-trellis-hooks/5016/2?u=swalkinshaw) for the hopefully working updated version.
