Export does not work
  • Hi,

    I was willing to export my site to work on it in the editor, however it gave me a zip file of 0ko, containing a 0ko file named after my website :s

    I checked the logs and no error are raised...

    Am I doing something wrong or should I create an issue on github?
  • Hi Loic,

    Yes please open an issue on github. Do not forget to mention the ruby version, the environment (dev or prod) as well as the logs when you hit the export button.
    thanks !

    Did
  • The bug has been solved, it was about the server configuration not about loco :)

    For those who would encounter the same problem it has to do about the config file /environnement/production.rb and more precisely the x_senfile_header option.

    Locomotive::Application.configure do
    #.........
    # Specifies the header that your server uses for sending files
    config.action_dispatch.x_sendfile_header = "X-Sendfile"

    # For nginx:
    # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

    # If you have no front-end server that supports something like X-Sendfile,
    # just comment this out and Rails will serve the files
    #.........
    end

    It seems that for me I had to comment the line altogether to make it work. mariovisic suggested that I probably have to activate it in apache first to make it work, I'll investigate that later, for the moment as long as it works it's ok for me :)

  • +1 to chewbie ! Commenting the 'x-sendfile' config option fixed it for me as well! Big life saver, thank you!!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!