Skip to content

Commit fd02066

Browse files
committed
Fix sandbox command
Rails does not create a sprockets manifest anymore, but we still depend on it. Since rails commands do not work anymore, because sprockets raises an error if no `manifest.js` file is present we need to create it in order to be able to run `rails new`.
1 parent e1e8ede commit fd02066

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/sandbox

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ function unbundled {
3333
}
3434

3535
rm -rf ./sandbox
36+
37+
mkdir -p sandbox/app/assets/config
38+
cat <<MANIFEST > sandbox/app/assets/config/manifest.js
39+
//= link_tree ../images
40+
//= link_directory ../javascripts .js
41+
//= link_directory ../stylesheets .css
42+
MANIFEST
43+
3644
rails new sandbox \
3745
--database="$RAILSDB" \
3846
--skip-git \

0 commit comments

Comments
 (0)