How to safely revert my changes in the container

To fix a problem, I had to do some manual changes in code inside the discourse container. Now how can I safely revert back all the changes?

If what you want is a container that has the current code, the simplest solution is to rebuild and get a new container.

Another way would be to use git to revert the changes you made. (you can Google how to do that).

1 Like

you mean:

cd /var/discourse
./launcher enter app
git reset --hard
git clean -fxd

will do the job?

1 Like

I think so. I’d recommend rebuilding a new container, though…

1 Like