I installed my site but i get error 502 Bad Gateway

I installed my site but i get error 502 Bad Gateway

Claire posted this answer:
“It seems you forgot to run the bundle exec rails assets:precompile step or it failed”

Can someone give me more details on how to run this command to solve this error?

When I try to run this command I receive the error:

Could not locate Gemfile or .bundle/ directory

can someone tell me what I am doing wrong?

thanks!!!

There are many reasons why you could get a “502 Bad Gateway”, we can’t know what’s wrong if you’re not providing logs.

As for running bundle exec rails assets:precompile (which might or might not be the solution to your issue), you have to run that in your Mastodon installation directory (typically, /home/mastodon/live).

In any case, make sure to read and understand the installation instructions at Installing from source - Mastodon documentation

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.