What type of hardware are you using: Virtual machine What YunoHost version are you running: 11.3.0.2 What app is this about: Mastodon
Describe your issue
I would like to increase the character limit on Mastodon toots.
I have tried to follow this guide.
First I did sudo yunohost app shell mastodon as explained by @tituspijeanhere.
And then I followed the guide but I got stuck when running RAILS_ENV=production bundle exec rails assets:precompile
as I get the following:
I have tried by exiting from this mastodon shell before running the precompile. For a short instant I thought that was the solution, but then I got another problem:
mastodon@sub:~$ RAILS_ENV=production bundle exec rails assets:precompile
bash: bundle: command not found
mastodon@sub:~$ exit
exit
peer@sub:/$ sudo -i
root@sub:~# cd /var/www/mastodon/live
root@sub:/var/www/mastodon/live# RAILS_ENV=production bundle exec rails assets:precompile
Compiling...
Compilation failed:
/var/www/mastodon/live/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js:86
#fillNegs() {
^
SyntaxError: Unexpected token '('
at new Script (vm.js:88:7)
at NativeCompileCache._moduleCompile (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:240:18)
at Module._compile (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:184:36)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/var/www/mastodon/live/node_modules/glob/node_modules/minimatch/dist/cjs/index.js:9:18)
at Module._compile (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/var/www/mastodon/live/node_modules/glob/dist/cjs/src/index.js:4:21)
at Module._compile (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/var/www/mastodon/live/config/webpack/shared.js:6:18)
at Module._compile (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (/var/www/mastodon/live/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/var/www/mastodon/live/config/webpack/production.js:13:22)
Oops, sorry, I forgot to change directory to live.
But look what I get now:
mastodon@sub:~$ cd live
mastodon@sub:~/live$ RAILS_ENV=production bin/bundle exec rails assets:precompile
/usr/bin/env: ‘ruby’: No such file or directory
mastodon@sub:~/live$
Yes, the Glitch-soc package for YunoHost has a config option called “Maximum allowed character count in a toot” that you can configure from the app’s config panel.