Compare commits
No commits in common. "8b2be80b1b16145837c968170b194a09f5c58345" and "41f55e5d8f5b532d26bb47619177bac26c8322cf" have entirely different histories.
8b2be80b1b
...
41f55e5d8f
28
SETUP.md
28
SETUP.md
|
@ -42,9 +42,6 @@ On Arch, you will need:
|
||||||
- `ruby-foreman`
|
- `ruby-foreman`
|
||||||
- `redis`
|
- `redis`
|
||||||
- `postgresql`
|
- `postgresql`
|
||||||
- `yarn`
|
|
||||||
- `gmp`
|
|
||||||
- `libidn`
|
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
|
@ -83,7 +80,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
|
||||||
|
@ -114,38 +111,33 @@ 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`.
|
||||||
- Put these in your shell's .rc, or a script you can source if you want to \
|
a. Put these in your shell's .rc, or a script you can source if you want to skip this step in the future.
|
||||||
skip this step in the future.
|
|
||||||
2. Run `bundle exec rake assets:precompile`.
|
2. Run `bundle exec rake assets:precompile`.
|
||||||
- If this explodes, complaining about `Hash`, you'll need to \
|
a. If this explodes, complaining about `Hash`, you'll need to `export NODE_OPTIONS=--openssl-legacy-provider`.
|
||||||
`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` \
|
`bundle exec rake assets:precompile`.
|
||||||
and then re-run `bundle exec rake assets:precompile`.
|
|
||||||
3. Run `foreman start`
|
3. Run `foreman start`
|
||||||
|
|
||||||
# Updates/Troubleshooting
|
# Updates/Troubleshooting
|
||||||
|
|
||||||
## RubyVM/DebugInspector Issues
|
## RubyVM/DebugInspector Issues
|
||||||
|
|
||||||
Still unable to fix. Circumvent by removing `better_errors` and
|
Still unable to fix. Circumvent by removing `better_errors` and `binding_of_caller` from Gemfile.
|
||||||
`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:
|
If Webpack compalins about being unable to find some assets or locales:
|
||||||
|
|
||||||
Try:
|
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 start`. No. We have no idea why this worked.
|
Then re-run `foreman`. No. We have no idea why this worked.
|
||||||
|
|
||||||
If the above instructions don't work, please contact @Rin here, or \
|
If the above instructions don't work, please contact @Rin here, or @tammy@social.treehouse.systems.
|
||||||
@tammy@social.treehouse.systems.
|
|
||||||
|
|
Loading…
Reference in New Issue