-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration guide? #9
Comments
Additionally I am looking at my codebase and wondering if there is an equivalent to Edit: Saw this line in the configuration docs, perhaps it should also be a callout in the main readme?
|
There isn't a 1-to-1 migration guide at the moment. I'm swamped right now, and would greatly appreciate help in that regard. I completely agree that the documentation could do with a major overhaul to help (ex-)Stapler users.
|
Hey, thanks for the extra info, that helps immensely. A few questions regarding your last two points:
|
Another thing I'm wondering about is database migrations / tables. Do I need to update my existing stapler fields or add any? |
The driver error is indeed caused by the missing configured filesystem driver entry. You can configure paperclip to use an existing filesystem driver, or configure the filesystems to provide the default As for the The same table migrations are required, yes. You can add an additional field, which is documented in the readme, but it is not required. There is no |
@austenc Hey... finally had time to come check this out and replace laravel-stapler. Did you figure out the config settings? In the paperclip config, I tried 'local' and 'public' for the disks and I get back and error:
Never mind. I see that the the lines needed to be
I'm figuring out the changes so will post if I run into other issues.
I'm not sure what the :attribute is doing, but it seemed to add "/document/" path right after the id_partition. This generates a url like below that matches my original laravel-stapler paths. I will do some more testing for thumbnails, various sized images, and post an edit.
Edit: Something I should mention in case someone uses the above. The files are stored in 'storage' above my app directory. I use Envoyer with symlinks so files aren't wiped out on deployment. |
@rbruhn I'm finally getting around to doing this upgrade in our app that uses stapler. It's a beast of an app so it may take a little while, but thank you in advance very much for your comments! Were you able to transition completely to this package successfully? |
Ya, it's done using the method above. I was able to match the URLS so no need to move images or anything. I didn't put anything in my models regarding urls. |
Hey @czim I'm interested in using this package instead of Stapler, but we already use Stapler (via
laravel-stapler
) in our project. I saw the list of differences in the readme, but was wondering if there was a more robust migration guide?If not, is there anything else I should be aware of when attempting the transition? Is the rest of the API mostly the same as stapler's?
This looks far more compatible (sick of battling this every upgrade!), so I'd love to give it a shot! Thanks!
The text was updated successfully, but these errors were encountered: