Precompile error during deployment

Asked 2 years ago, Updated 2 years ago, 121 views

I'd like to deploy the rails app, but I got a precompilation error at the last stage, so I can't proceed.
I entered this command

 bundle exec rake assemblies:precompile RAILS_ENV=production

The error content is

/usr/bin/env:ruby 2.3: No such files or directories

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  

rake aborted!
Pass::SyntaxError: Invalid CSS after "color:": expected expression 
(e.g.1px, bold), was ";"
(sass): 1652

I could see that

So I have a question, but I have no idea where this error is, so where should I correct it?
I don't remember writing (e.g.1px,bold) and I don't have line 1652 in the css file.

I would appreciate it if you could let me know if you notice anything.
Also, what should I do to identify the problem is helpful.
Thank you m(._.)m

ruby deployment

2022-09-30 19:26

1 Answers

(e.g.1px,bold) means "for example", so it doesn't seem to mean that there is such a description.

color:":expected expression

It seems that you are using the Rails standard Pass (SCSS), so the description is incorrect and the compilation is not possible.
There seems to be an incorrect description in the area where color is used, so once you review it, you may find something.


2022-09-30 19:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.