View the full wiki here: https://github.com/moxiworks-platform/moxiworks-platform.github.io/wiki
This project uses an unconventional deploy process.
Please read the the Making Changes section in the wiki before proceed with any changes.
- Make sure you have installed bundler version 1.16.6 -
gem install bundler -v 1.16.6
- Run
bundle install
- If your using macOS monetary or higher,
ffi
gem may not install correctly. If you see an error message about ffi, rungem install ffi -v '1.17.0' -- --with-cflags="-Wno-error=implicit-function-declaration"
Reference: https://stackoverflow.com/questions/73031300/cant-install-ffi-v-1-12-2-on-mac-os-monterey - Run
bundle update ffi --minor
to update ffi in the Gemfile.lock and install all other gems - To start the middleman server
EXECJS_RUNTIME=Node bundle exec middleman server
- If your using macOS M1 or higher and you see an error message about
dyld[5463]: missing symbol called
, it is likely because of thetherubyracer
gem. Ref: https://www.rubyonmac.dev/how-to-install-therubyracer-on-m1-m2-apple-silicon-mac - Remove the
therubyracer
gem (or comment out) from the Gemfile and runbundle install
- Run
EXECJS_RUNTIME=Node bundle exec middleman server
to start the server - You can now view the site at
http://MBP-G2XMJG24CT.local:4567/ (http://192.168.0.109:4567/)
Note: Do not commit the changes made to gemfile and gemfile.lock which removes thetherubyracer
gem.