Skip to content

Initial data / data example? #36

Open

Description

@bagage

I'm trying to host an instance locally, but yet my database is empty and it seems the app expects some data to be already present (for instance games with source mango).

Is there a way to have a working local copy?

I tried to manually create these data (and probably doing it wrong) without success yet:

User.create(email: "admin@admin.com", username: "admin", admin: true, password: "1234")
Api.create(name: "api-test")
Game.create(name: "game1", slug:"game1", source:"mango", image_url: "https://github.com/flightlessmango/flightlessmango.com/raw/master/app/assets/images/mangoLogoSmall.png")
Type.create(name: "type1")
Variation.create(name: "var1", type_id: 1)

Also some MANGO/OCAT/HML and game benchmark samples would be great.

Thanks!

Activity

  1. flightlessmango commented on Jan 23, 2021

    @flightlessmango
    Owner

    Looks like you've basically got it but there is a formatting bug in config/storage.yml which will prevent uploading, replace it's contents with
    https://raw.githubusercontent.com/huacnlee/rails-activestorage-example/master/config/storage.yml

    Game just needs a name and source mango like so
    Game.create!(name: "VideoGame1", source: "mango")

    I don't use HML or OCAT anymore so I'm not a 100% that they are still working as intended

  2. bagage commented on Jan 23, 2021

    @bagage
    Author

    Yes indeed I have trouble with uploading, undefined method 'upload' for nil:NilClass. Even with the updated storage.yml it is failing but not sure why. Any idea would be greatly appreciated 👍.

    In the mean time some questions:

  3. flightlessmango commented on Jan 23, 2021

    @flightlessmango
    Owner

    As I said there is a formatting error in the config/storage.yml that is in this repo, you need to replace it with this one
    https://raw.githubusercontent.com/huacnlee/rails-activestorage-example/master/config/storage.yml to fix uploading

    Yes the file that user benchmarks expects and a "MANGO" file are the same, a csv created by mangohud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions