Skip to content

ArgumentError (path is required) #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gvescu opened this issue May 4, 2022 · 0 comments
Open

ArgumentError (path is required) #111

gvescu opened this issue May 4, 2022 · 0 comments

Comments

@gvescu
Copy link

gvescu commented May 4, 2022

Greetings! My Rails app will be served inside a subdirectory like

https://example.com/myapp/

I have no issues when running it on localhost, but when deploying serviceworker-rails returns ArgumentError (path is required) pointing to lib/serviceworker/route.rb:37. My initializer is with the basic setup:

# frozen_string_literal: true

Rails.application.configure do
  config.serviceworker.routes.draw do
    match "/serviceworker.js"
    match "/manifest.json"
  end
end

Again, running it locally (as localhost:3000) it works fine but it crumbles when it's deployed in the subdirectory. I think I saw something about the mapping of the route, but I'm not sure how should I be putting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant