exercism / DEPRECATED.v2-feedback

Please use https://github.com/exercism/exercism.io for reporting issues
13 stars 5 forks source link

Running the website on windows #209

Closed FabienTregan closed 6 years ago

FabienTregan commented 6 years ago

Hi, I tryed to run the server on windows following the instructions in https://github.com/exercism/website/blob/master/README.md and needed to add a few step (I know some of them are windows related, not sure they all are.)

then http://localhost:3000 complains about missing //= require simplemde/dist/simplemde.min.js. I could manual fix the problem in an hugly way, but then another .js was unfound. Ihid on slack told me :

The bin/setup should have ran "yarn install" which should have installed the assets. You shouldn't need to add it to the gemfile. [...]

Maybe the problem is that I don't have yarn installed.

I'm not in a hurry to run the server locally, but wanted to trace my experience while am still uneperienced.

iHiD commented 6 years ago

@FabienTregan Thanks so much for documenting your steps.

bin/setup gives and error

Could you tell me what error this gives pls?

FabienTregan commented 6 years ago

From a git bash :

$ ./bin/setup
The Gemfile's dependencies are satisfied

== Command ["bin/rails db:setup"] failed ==
== Installing dependencies ==

== Preparing database ==
FabienTregan commented 6 years ago

Update : after deleting / recreating the tables, installing yarn and restarting bin/setup, It now creates the tables but still fails at finding the selectize.js script :

$ bin/setup
The Gemfile's dependencies are satisfied

== Command ["bin/rails db:setup"] failed ==
== Installing dependencies ==

== Preparing database ==

Fabien@[...]/nextercism/website (master)
$ bin/rails db:setup
[...]
-- create_table("exercise_topics", {:options=>"ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", :force=>:cascade})
   -> 0.0618s
-- create_table("exercises", {:options=>"ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", :force=>:cascade})
   -> 0.0662s
-- create_table("friendly_id_slugs", {:options=>"ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", :force=>:cascade})
   -> 0.0820s
-- create_table("ignored_solution_mentorships", {:options=>"ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", :force=>:cascade})rails aborted!
ActionView::Template::Error: couldn't find file 'selectize/dist/js/standalone/selectize.js' with type 'application/javascript'
Checked in these paths:
kytrinyx commented 6 years ago

This repo is being deprecated. We've imported this issue to the https://github.com/exercism/exercism.io repository.