Sublime Forum

Simple FTP deploy

#1

I have a file simple-ftp-deploy.json with these lines:

{
“host”: “files.000webhost.com”,
“port”: 21,
“username”: “**", // my username, of course
“password”: "
”, // my password
“rootDirectory”: “/public_html/wp-content/themes/advanced-wp/”
}

According to the (minimal) help. this file, placed into the same directory, would a file " if you save it, this file will be upload to FTP server which you entered in config file"

[Edit: uploading with FileZilla is no problem at all!]

But it does not happen! What could be wrong?

Thank you, Ad

0 Likes

#2

do you have the folder open in the sidebar? looks like you need to

0 Likes

#3

@kingkeith: I have it open as you can see on the screenshot.

0 Likes

#4

any errors in the console when you save a file? (View menu -> Show Console)

0 Likes

#5

Yes, there is an error message in the console!


That brings us further, thank you!
Apparently, my rootDirectory setting is not correct. But what should it be?

0 Likes

#6

presumably just /public_html/ as it has duplicated your /wp-content/themes/advanced-wp/

0 Likes

#7

Yes, I tried to change the config file, but the error message does not go away!

0 Likes

#8

After a complete reboot, I see new error messages in the console:

0 Likes

#9

I f this is CPanel server you might need to add
/home/your_cpanel_dir/
Look in CPanel file manager, think you need to match whole path

0 Likes

#10

This is not a CPanel, afaik:

I restarted, and strange; no error messages; this is the complete console contents:
DPI scale: 1
startup, version: 3126 windows x64 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Users/Adrian Rienks/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/Adrian Rienks/AppData/Roaming/Sublime Text 3/Local
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Users/Adrian Rienks/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages: [“Vintage”]
pre session restore time: 0.115493
startup time: 0.209493
first paint time: 0.212493
first paint time: 0.213493
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin Emmet.emmet-plugin
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin Simple FTP Deploy.main
plugins loaded
Emmet: No need to update PyV8
Package Control: No updated packages

You see; no error messages, but still the uploading does not take place!

0 Likes

#11

Maybe Sublime Text is too complicated for me: I switched to Atom, installed it and Remote-FTP in 10 minutes. I am done!

1 Like