
I saved and then pushed it to production and that fixed the issue for me. In the policies file for Users ( app/policies/user_policy.rb) in my application, I simply renamed: def initialize(user, user)Īnd almost did the renaming at the other places in the app/policies/user_policy.rb file that user, user was defined to user, user_model.
#SHAREPLUS 503 ERROR CODE#
I fixed the error in my code which was caused by a duplicated argument name, that is def initialize(user, user) in my Pundit gem policies. The 500 error occurs when something is preventing the server from handling your request, while the 503 Error actually means that the server is fine. The 503 error is different from a 500 Internal Server Error. The error can occur for a number of reasons, but the two most common reasons are that the server is overwhelmed with requests or is having maintenance performed on it.

T12:28:57.565468+00:00 app: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma) It’s called a 503 error because that’s the HTTP status code that the web server uses to define that kind of error.

T12:28:57.565417+00:00 app: ! Unable to load application: Synta圎rror: /app/app/policies/user_policy.rb:4: duplicated argument name T12:28:53.969443+00:00 app: * Version 4.3.7 (ruby 2.6.6-p146), codename: Mysterious Traveller 2) Server reboot check the iis site has start up type automatic. Var server = app.listen( || 5000), function() ` get are used for debugging on localhost when it was initially set up.Īpp.use(express.static(path.join(_dirname, 'public'))) My main question is if I have set up my server correctly? I am not sure my listener will work for heroku and my.

I hope anyone can point me in the correct direction as to where to look or provide a suggestion as I have spent countless hours on google to this point spanning a couple of weeks. I am curious as to if my server is set up correctly as I am newer to programming. I am trying to deploy to heroku but get a 503 even though it runs on localhost.
