Skip to content

Commit 0230060

Browse files
committed
Add sprockets manifest before running rails commands
Due to a bug in sprockets-rails[1] we need to manually add the sprockets manifest into the generated rails app before running any rails commands inside the rails app folder. [1](rails/sprockets-rails#546)
1 parent 34682f8 commit 0230060

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ To add Solidus, begin with a newly created Rails application with its database.
9090
rails new my_store
9191
```
9292

93+
## CAUTION
94+
95+
Due to [a bug in `sprockets-rails`](https://github.com/rails/sprockets-rails/pull/546) we need to manually add the sprockets manifest into the generated rails app **before** running any rails commands inside the rails app folder.
96+
97+
```bash
98+
mkdir -p my_store/app/assets/config
99+
cat <<MANIFEST > my_store/app/assets/config/manifest.js
100+
//= link_tree ../images
101+
//= link_directory ../javascripts .js
102+
//= link_directory ../stylesheets .css
103+
MANIFEST
104+
```
105+
93106
### Installing Solidus
94107

95108
In your application's root folder run:
@@ -99,6 +112,9 @@ bundle add solidus
99112
bin/rails g solidus:install
100113
```
101114

115+
> [!NOTE]
116+
> Please make sure to generate the sprockets manifest before running the `solidus:install` generator.
117+
102118
And follow the prompt's instructions.
103119
### Accessing Solidus Store
104120

0 commit comments

Comments
 (0)