p2pu / mechanical-mooc

Mechanical Mooc
https://mechanicalmooc.org/
MIT License
47 stars 28 forks source link

heroku open dont working #45

Closed johnfelipe closed 9 years ago

johnfelipe commented 10 years ago
    root@dhcppc5:/opt/myenv/mechanical-mooc# heroku open
    Opening stormy-reaches-3449... failed
     !    Heroku client internal error.
     !    Search for help at: https://help.heroku.com
     !    Or report a bug at: https://github.com/heroku/heroku/issues/new

        Error:       Unable to find a browser command. If this is unexpected, Please rerun with environment variable LAUNCHY_DEBUG=true or the '-d' commandline option and file a bug at https://github.com/copiousfreetime/launchy/issues/new (Launchy::CommandNotFoundError)
        Backtrace:   /usr/local/heroku/vendor/gems/launchy-2.4.2/lib/launchy/applications/browser.rb:63:in `browser_cmdline'
                     /usr/local/heroku/vendor/gems/launchy-2.4.2/lib/launchy/applications/browser.rb:67:in `cmd_and_args'
                     /usr/local/heroku/vendor/gems/launchy-2.4.2/lib/launchy/applications/browser.rb:78:in `open'
                     /usr/local/heroku/vendor/gems/launchy-2.4.2/lib/launchy.rb:29:in `open'
                     /usr/local/heroku/lib/heroku/helpers.rb:328:in `block in launchy'
                     /usr/local/heroku/lib/heroku/helpers.rb:227:in `action'
                     /usr/local/heroku/lib/heroku/helpers.rb:326:in `launchy'
                     /usr/local/heroku/lib/heroku/command/apps.rb:338:in `open'
                     /usr/local/heroku/lib/heroku/command.rb:218:in `run'
                     /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
                     /usr/bin/heroku:25:in `<main>'

        Command:     heroku open
        Version:     heroku-toolbelt/3.6.0 (x86_64-linux) ruby/1.9.3
dirkcuys commented 10 years ago

Hey @johnfelipe, are you running this on a headless server? If so, heroku open won't work - it opens a new browser on the machine where you run the command.

Are you still trying to install the Mechanical MOOC to run offline? If so, you shouldn't be using heroku for the setup.

johnfelipe commented 10 years ago

mmm, yes your right, please tell me step by step for offline version

dirkcuys commented 10 years ago

The Mechanical MOOC uses email to distribute course content to users. If you want to run an offline version of the Mechanical MOOC in a lab without internet connectivity you would need to setup your own offline email service for this! I'm not sure if you want to do this?

It would be much easier to setup something where you can point users to a locally hosted website. In that case Lernanta will be more suitable. You will need to make some customization and it will take some work, but it is possible.

If your users has bad connectivity, but use email already, the Mechanical MOOC in its normal online form will work fairly well for you. You will need to optimize the signup page for low bandwidth connections and make sure to avoid large emails.

If you want to continue setting up the Mechanical MOOC locally, the best instructions to follow would be the ones I mentioned here: https://github.com/p2pu/mechanical-mooc/issues/43#issuecomment-39764717