Commit cfd9f615 authored by Lukas Matt's avatar Lukas Matt

testing_mastodon; Use Sidekiq::Testing.inline

redis received all jobs butdidn't execute them.
parent eb6c11dd
DEFAULT_LOCALE=en
LOCAL_HTTPS=false
LOCAL_DOMAIN=localhost:APP_PORT
RAILS_ENV=development
DISABLE_DATABASE_ENVIRONMENT_CHECK=1
SAFETY_ASSURED=1
......
......@@ -68,9 +68,23 @@ RUN chown -R mastodon:mastodon /mastodon
USER mastodon
RUN bundle config build.nokogiri --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include
RUN bundle install
RUN bundle install --without test
RUN yarn install --pure-lockfile
# XXX workaround for ruby goldfinger gem
# adds the ability to search profiles via http
# (see https://github.com/tootsuite/goldfinger/pull/2)
RUN sed -i 's/https/http/' \
/usr/local/bundle/gems/goldfinger-*/lib/goldfinger/client.rb
# XXX disable redis; redis received all jobs but
# didn't execute them. bypassing it now till
# someone with more knowledge comes around
RUN echo -e "if Rails.env.development?\n"\
"require 'sidekiq/testing'\n"\
"Sidekiq::Testing.inline!\n"\
"end" >> config/initializers/sidekiq.rb
COPY .env /mastodon/.env
COPY start.sh /start.sh
......
......@@ -2,12 +2,7 @@
WEBPACK_PORT=$(($PORT+100))
# XXX workaround for ruby goldfinger gem
# adds the ability to search profiles via http
# (see https://github.com/tootsuite/goldfinger/pull/2)
sed -i 's/https/http/' \
/usr/local/bundle/gems/goldfinger-*/lib/goldfinger/client.rb
sed -i "s/APP_PORT/$PORT/" /mastodon/.env
sed -i "s/DATABASE_NAME/$DATABASE/" /mastodon/.env
sed -i "s/port: 3035/port: $WEBPACK_PORT/" config/webpacker.yml
./bin/webpack-dev-server --port $WEBPACK_PORT &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment