You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
Scripts source code is stored in scripts subdirectory, and names are based on
61
-
script labels. Keep in mind that script labels in syncano are not unique, and
62
-
this tools can't handle this kind of situation.
65
+
The Scripts' source code is stored in the scripts subdirectory. Their names are based on
66
+
script labels. Keep in mind that script labels in Syncano are not unique, and
67
+
this tool cannot yet handle this kind of situation when pulling a Script from Syncano.
63
68
64
-
Classes and Scripts configuration is stored in syncano.yml file. If file
65
-
syncano.yml already exists only classes and scripts stored in this file, will
66
-
be pulled and updated. If you want to pull whole instance you can use -a/--all
67
-
flag.
69
+
Classes and Scripts configuration is stored in *syncano.yml* file. If this file already
70
+
exists, only classes and scripts stored in this file will be pulled and updated.
71
+
If you want to pull the whole instance you can use *-a/--all* switch flag.
68
72
69
73
Pushing your changes
70
74
--------------------
71
75
72
-
When you have made some changes to syncano.yml or some script source code you
73
-
can push the changes to syncano using
76
+
After you have made changes to *syncano.yml* or any of the script's source code,
77
+
you can push the changes to Syncano using
74
78
75
79
::
76
80
77
81
syncano sync push
78
82
79
-
It will push only changes newer then last synchronization time. This time is
80
-
recorded using .sync file last modification time. If syncano.yml has changed
81
-
it will try to push all data to syncano. Otherwise it will just push changed
82
-
source code files for scripts. If you want to force push all changes you can
83
-
use -a/--all option.
83
+
It will push only changes newer than the last synchronization time.
84
+
As last synchronization time we use *.sync* file last modification time.
85
+
If *syncano.yml* has changed, it will try to push all data to Syncano. Otherwise,
86
+
it will just push the source code files for scripts that were changed.
87
+
If you want to force push all changes you can use *-a/--all* option.
84
88
85
-
If you want to just push selected classes/scripts changes you can provide them
86
-
with -c/--class or -s/--script options like in the pull example above.
89
+
If you only want to push changes from selected classes/scripts you can provide them
90
+
with *-c/--class* or *-s/--script* options like in the pull example above.
87
91
88
-
Synchronization of changes in realtime
92
+
Synchronize changes in real-time
89
93
--------------------------------------
90
94
91
-
There is also an option to synchronize your project live. When you change
92
-
syncano.yml or some script source code pointed to by syncano.yml your changes
93
-
will be automatically pushed to syncano.
95
+
There is an option to synchronize your project in real-time. When you change
96
+
syncano.yml or the source code of a script described in *syncano.yml*, your changes
97
+
will be automatically pushed to Syncano.
94
98
95
99
::
96
100
97
101
syncano sync watch
98
102
99
-
This command will push all your project configuration to syncano and will
100
-
wait for changes made to project files. When it detects file modification
101
-
it will push those changes to syncano.
103
+
This command will push all of your project's configuration to Syncano and will
104
+
wait for changes made to project files. When it detects that any file was modified,
105
+
it will push those changes to Syncano.
102
106
103
107
104
108
Syncano Parse migration tool
@@ -108,8 +112,8 @@ This tool will help you to move your data from Parse to Syncano.
108
112
109
113
**Usage:**
110
114
111
-
Currently supports only transferring data. This tool takes the Parse schemas and transform them to Syncano classes.
112
-
Next step is to move all of the data between Parse and Syncano. The last step is rebuilding the relations between
115
+
Currently supports only transferring data. This tool takes the Parse schemas and transforms them to Syncano classes.
116
+
The next step is to move all of the data between Parse and Syncano. The last step is rebuilding the relations between
113
117
objects.
114
118
115
119
@@ -132,7 +136,7 @@ Will run the configuration that will ask you for the following variables:
132
136
* -c (--current) which will display the current configuration;
133
137
* -f (--force) which allow to override the previously set configuration;
134
138
135
-
The configuration will be stored in your home directory in .syncano file under the P2S section.
139
+
The configuration will be stored in your home directory in the .syncano file under the P2S section.
136
140
It's used to call the Parse API and Syncano API as well.
137
141
138
142
Run migration
@@ -142,50 +146,102 @@ Run migration
142
146
143
147
syncano migrate parse
144
148
145
-
This command will run the synchronization process between Parse and Syncano. Sit comfortably in your chair and read
149
+
This command will run the synchronization process between Parse and Syncano. Sit back, relax, and read
146
150
the output.
147
151
152
+
Tips & Troubleshooting
153
+
----------------------
154
+
155
+
1. This tool currently does not support checking if an object is already present in the Syncano instance.
156
+
If the sync is run twice, the data will be duplicated. To avoid this,
157
+
simply remove your instance using Syncano dashboard;
158
+
159
+
2. The whole process can be quite slow because of the throttling on both sides: Parse and Syncano on free trial accounts (which is the bottom boundary for scripts);
160
+
148
161
Syncano Hosting
149
162
===============
150
163
151
-
Syncano Hosting is a simple way to host the static files. CLI supports it in the following way:
164
+
Syncano Hosting is a simple way to host your static files on Syncano servers.
165
+
The CLI supports it in the following way:
152
166
153
-
::
167
+
This command will list files for currently hosted website::
154
168
155
-
syncano hosting --list-files
169
+
syncano hosting list
156
170
157
-
This command will list files in hosting which match the default hosting.
171
+
This command will publish all files inside *<base_dir>* to the default Syncano Hosting instance.
172
+
When publishing the whole directory, the structure will be mapped on Syncano.::
158
173
159
-
::
174
+
syncano hosting publish <base_dir>
160
175
161
-
syncano hosting --publish <base_dir>
176
+
This command will unpublish currently published hosting::
162
177
163
-
This command will publish all files inside <base_dir> and will publish it to the Syncano Hosting (default one).
164
-
The whole directory structure - will be mapped in Syncano Hosting.
178
+
syncano hosting unpublish
165
179
166
180
167
-
Tips & Troubleshooting
168
-
----------------------
181
+
This command will permamently delete the hosting::
169
182
170
-
1. This tool currently does not support checking if some object is already present in the Syncano instance,
171
-
so if sync is run twice the end results is that data is duplicated. To avoid such cases,
172
-
simply remove your instance in using Syncano dashboard;
183
+
syncano hosting delete
173
184
174
-
2. The process can be quite slow - it's because of the throttling on both sides: Parse and Syncano on free accounts
175
-
(which is the bottom boundary for scripts);
185
+
This command will delete the specified file::
176
186
177
-
3. If you encounter any problems, have some improvements proposal or just wanna talk,
0 commit comments