Switching to a fork of an app
-
This is a duplicate post from the Mastodon forum: I want to switch to the Hometown branch of Mastodon. My install is currently the default one-click installation on Cloudron.
Can I simply initialize a new git repo in the /app/code folder via the cloudron cli and switch branches/remote origins?
Or would this depend on the changes in functionality of the fork itself and it's better to package a custom app?
-
This is a duplicate post from the Mastodon forum: I want to switch to the Hometown branch of Mastodon. My install is currently the default one-click installation on Cloudron.
Can I simply initialize a new git repo in the /app/code folder via the cloudron cli and switch branches/remote origins?
Or would this depend on the changes in functionality of the fork itself and it's better to package a custom app?
@jordanurbs I've no idea really, but I'd guess that later. I think you'd need to create a completely new custom app based on the fork.
-
Yes, essentially you can start from the regular mastodon package at https://git.cloudron.io/cloudron/mastodon-app and then adjust that to use the fork. This however then means that our package updates would of course not apply to your modified/forked instance.
-
@jordanurbs The code inside the container (the /app/code you refer to) cannot be changed. It's a read-only file system. On Cloudron, you have to create a docker image and then deploy the docker image.
I think it's easiest if you quickly try https://forum.cloudron.io/topic/3102/building-custom-packages first to build the mastodon app. Once you do that, you can adjust that Dockerfile for the hometown branch and then build again and then run
cloudron update. -
@jordanurbs The code inside the container (the /app/code you refer to) cannot be changed. It's a read-only file system. On Cloudron, you have to create a docker image and then deploy the docker image.
I think it's easiest if you quickly try https://forum.cloudron.io/topic/3102/building-custom-packages first to build the mastodon app. Once you do that, you can adjust that Dockerfile for the hometown branch and then build again and then run
cloudron update.@girish You just saved me a lot of time and headache, thank you!
-
@jordanurbs have you completed your fork?
-
@jordanurbs have you completed your fork?
@robi said in Switching to a fork of an app:
@jordanurbs have you completed your fork?
I came to ask the same thing

I've been trying to run Hometown with no success so far. -
As mastodon or should I say fediverse popularity rises, came here to ask if you made switch to fork and would you care to write something about it.
-
As mastodon or should I say fediverse popularity rises, came here to ask if you made switch to fork and would you care to write something about it.
@brandthedwarf I finally did it. I'm not a technical person and just followed the instructions running it locally
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login