Skip to content

Sync not working from [local] to [remote] #77

Open
@LSDSumus

Description

@LSDSumus

Running ols on a M2 Mac with a terminal Python environment and running into a problem where changes made to my project locally aren't updated on the site when running ols -l after applying the changes in #66 to fix the GCLB cookies error.

Remote to local syncing works as it should, but when trying it the other way around I'm unable to both update or delete older files and create newer ones, only creating missing folders and subfolders, but without bringing over any of their contents.

Also, files actually do get deleted from the remote version when stated.

I have an .olignore file set up to ignore the output file and the environment folder, which is created here since I'm running the terminal from the project folder itself, but deleting it doesn't solve the problem.

I do not get any errors, these are the messages I get when running ols -l -v:

Project queried successfully.
✅  Querying project
Project details queried successfully.
✅  Querying project details
Project downloaded successfully.
✅  Downloading project
========================================

.olignore: using .olignore to filter items
========================================

.olignore: using .olignore to filter items
========================================

.olignore: using .olignore to filter items

Syncing files from [local] to [remote]
========================================

-> Warning: file <Test file remote.tex> does not exist on [local] anymore (but it still exists on [remote]).
Should the file be [d]eleted, [r]estored or [i]gnored? (d, r, i) [i]: d

[NEW] Following new file(s) created on [remote]
	Test folder/Test file 2.pdf
	Test folder/Test subfolder/Test file 3.pdf
	Test file 1.pdf

[NEW] Following new file(s) created on [local]

[UPDATE] Following file(s) updated on [remote]
	main.tex

[DELETE] Following file(s) deleted on [remote]
	Test file remote.tex # Actually gets deleted

[SYNC] Following file(s) are up to date

[SKIP] Following file(s) on [local] have not been synced to [remote]

[SKIP] Following file(s) on [remote] have not been synced to [local]

✅  Synced files from [local] to [remote]

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