Compare commits

..

15 Commits

Author SHA1 Message Date
fox 5e89609016 treehouse Vagrantfile init
ci/woodpecker/pr/woodpecker Pipeline failed Details
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-18 17:37:01 -06:00
kouhai dev f25edd6dcf consistent dividers
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-17 19:14:19 -08:00
Rin f196b4b9d6 force psych <4 in Gemfile 2022-12-17 19:14:19 -08:00
kouhai dev 36cc31f924 add deps rake tasks 2022-12-17 19:14:19 -08:00
kouhai dev 0604b7a3f8 update default repository/source metadata 2022-12-17 19:14:19 -08:00
kouhai dev e6544ce4b0 use yarn 3 2022-12-17 19:14:19 -08:00
kouhai dev 4ea85c685e update browserslist 2022-12-17 19:14:19 -08:00
kouhai dev 99158a0af2 update dockerignore 2022-12-17 19:14:19 -08:00
kouhai dev f8f1966e79 temporarily remove "Get the app" link" 2022-12-17 19:14:19 -08:00
kouhai dev 19cd42360d quick status hover hack 2022-12-17 19:14:19 -08:00
fox 772ba5aac3 update documentation
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #30
Co-authored-by: fox <fox@neko.business>
Co-committed-by: fox <fox@neko.business>
2022-12-18 03:13:45 +00:00
Rin aa24b2d072
make glitch style consistent
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-08 18:26:32 +11:00
Rin 0cd76aa22a
make default masto style consistent 2022-12-08 18:24:41 +11:00
Rin 06a2259577
fix default masto style too 2022-12-08 16:58:48 +11:00
Rin 7bf26a1094
fix missing link style in admin.scss - actually this time
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2022-12-08 16:31:42 +11:00
4 changed files with 47 additions and 38 deletions

View File

@ -17,31 +17,29 @@ Mastodon development requires the following:
### macOS ### macOS
First, make sure you have Homebrew installed. Follow the instructions at First, make sure you have Homebrew installed. Follow the instructions at [brew.sh](https://brew.sh).
[brew.sh](https://brew.sh).
Run the following to install all necessary packages: Run the following to install all necessary packages:
``` ```
brew install ruby@3.0 foreman node yarn postgresql redis brew install ruby@3.0 foreman node yarn postgresql redis
``` ```
Ruby 3.0 is **keg-only** by default. Follow the instructions in the **Caveat** Ruby 3.0 is **keg-only** by default. Follow the instructions in the **Caveat** to add it to your path.
to add it to your path.
### Linux ### Linux
We will assume that you know how to locate the correct packages for your distro. We will assume that you know how to locate the correct packages for your distro. That said, some distros package `bundler` and `irb` separately. Make sure that you also install these.
That said, some distros package `bundler` and `irb` separately. Make sure that
you also install these.
On Arch, you will need: On Arch, you will need:
- `ruby` - `ruby`
- `ruby-bundler` - `ruby-bundler`
- `ruby-irb` - `ruby-irb`
- `ruby-foreman` - `ruby-foreman`
- `redis` - `redis`
- `postgresql` - `postgresql`
- `yarn`
- `gmp`
- `libidn`
### Windows ### Windows
@ -80,7 +78,7 @@ mkdir -p data/redis
redis-server ./redis-dev.conf redis-server ./redis-dev.conf
# [Optional] Stop Redis # [Optional] Stop Redis
kill "$(cat ./data/redis/redis-dev.pid)" # kill "$(cat ./data/redis/redis-dev.pid)"
``` ```
## Ruby ## Ruby
@ -111,11 +109,10 @@ bundle exec rake db:setup
## Running Mastodon ## Running Mastodon
1. Run `export RAILS_ENV=development NODE_ENV=development`. 1. Run `export RAILS_ENV=development NODE_ENV=development`.
a. Put these in your shell's .rc, or a script you can source if you want to skip this step in the future. - Put these in your shell's .rc, or a script you can source if you want to skip this step in the future.
2. Run `bundle exec rake assets:precompile`. 2. Run `bundle exec rake assets:precompile`.
a. If this explodes, complaining about `Hash`, you'll need to `export NODE_OPTIONS=--openssl-legacy-provider`. - If this explodes, complaining about `Hash`, you'll need to `export NODE_OPTIONS=--openssl-legacy-provider`.
b. After doing this, you will need to run `bundle exec rake assets:clobber` and then re-run - After doing this, you will need to run `bundle exec rake assets:clobber` and then re-run `bundle exec rake assets:precompile`.
`bundle exec rake assets:precompile`.
3. Run `foreman start` 3. Run `foreman start`
# Updates/Troubleshooting # Updates/Troubleshooting
@ -123,21 +120,24 @@ bundle exec rake db:setup
## RubyVM/DebugInspector Issues ## RubyVM/DebugInspector Issues
Still unable to fix. Circumvent by removing `better_errors` and `binding_of_caller` from Gemfile. Still unable to fix. Circumvent by removing `better_errors` and `binding_of_caller` from Gemfile.
Happy to troubleshoot with someone better with Ruby than us >_<'/. Happy to troubleshoot with someone better with Ruby than us >_<'/.
## Webpack Issues ## Webpack Issues
If Webpack compalins about being unable to find some assets or locales:
Try:
If Webpack compalins about being unable to find some assets or locales:
Try:
1. `rm -rf node_modules` 1. `rm -rf node_modules`
2. `yarn install` 2. `yarn install`
If this doesn't help, try: If this doesn't help, try:
1. `yarn add webpack` 1. `yarn add webpack`
2. `git restore package.json yarn.lock` 2. `git restore package.json yarn.lock`
3. `yarn install` 3. `yarn install`
Then re-run `foreman`. No. We have no idea why this worked. Then re-run `foreman start`. No. We have no idea why this worked.
# Need Help?
If the above instructions don't work, please contact @Rin here, or @tammy@social.treehouse.systems. If the above instructions don't work, please contact @Rin here, or @tammy@social.treehouse.systems.

View File

@ -10,17 +10,6 @@ $content-width: 840px;
width: 100%; width: 100%;
min-height: 100vh; min-height: 100vh;
a {
color: $highlight-text-color;
&:hover,
&:active,
&:focus {
text-decoration: none;
}
}
.sidebar-wrapper { .sidebar-wrapper {
min-height: 100vh; min-height: 100vh;
overflow: hidden; overflow: hidden;
@ -1692,6 +1681,15 @@ a.sparkline {
box-sizing: border-box; box-sizing: border-box;
min-height: 100%; min-height: 100%;
a {
color: $highlight-text-color;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
p { p {
margin-bottom: 20px; margin-bottom: 20px;
unicode-bidi: plaintext; unicode-bidi: plaintext;

View File

@ -1681,6 +1681,15 @@ a.sparkline {
box-sizing: border-box; box-sizing: border-box;
min-height: 100%; min-height: 100%;
a {
color: $highlight-text-color;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
p { p {
margin-bottom: 20px; margin-bottom: 20px;
unicode-bidi: plaintext; unicode-bidi: plaintext;

View File

@ -10,6 +10,10 @@ POSTGRES_PID_FILE = POSTGRES_DIR / 'postmaster.pid'
REDIS_DIR = DATA_DIR / 'redis' REDIS_DIR = DATA_DIR / 'redis'
REDIS_PID_FILE = REDIS_DIR / 'redis-dev.pid' REDIS_PID_FILE = REDIS_DIR / 'redis-dev.pid'
def divider
puts '=========='
end
def get_pid(pid_file) def get_pid(pid_file)
return false unless File.file?(pid_file) return false unless File.file?(pid_file)
pid = File.read(pid_file).to_i pid = File.read(pid_file).to_i
@ -58,9 +62,9 @@ namespace :deps do
end end
puts 'Starting postgres...' puts 'Starting postgres...'
puts '==========' divider
sh %(pg_ctl -D ./data/postgres start) sh %(pg_ctl -D ./data/postgres start)
puts '==========' divider
end end
task :stop do task :stop do
@ -69,9 +73,9 @@ namespace :deps do
next next
end end
puts "Stopping Postgres (pid #{pid})...\n==========" puts "Stopping Postgres (pid #{pid})..."
sh %(pg_ctl -D ./data/postgres stop) sh %(pg_ctl -D ./data/postgres stop)
puts '==========' divider
end end
end end
@ -86,9 +90,9 @@ namespace :deps do
end end
puts 'Starting redis...' puts 'Starting redis...'
puts '==========' divider
sh %(redis-server redis-dev.conf) sh %(redis-server redis-dev.conf)
puts '==========' divider
end end
task :stop do task :stop do
@ -97,11 +101,9 @@ namespace :deps do
next next
end end
puts "Stopping Redis (pid #{pid})...\n==========" puts "Stopping Redis (pid #{pid})..."
divider
Process.kill(:TERM, pid) Process.kill(:TERM, pid)
end end
end end
namespace :memcached do
end
end end