This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
technical_discussions:sencha_command [2021/06/20 13:15] admin |
technical_discussions:sencha_command [2021/06/20 13:48] admin [Install the Sencha Command] |
||
---|---|---|---|
Line 25: | Line 25: | ||
* Run the installer shell (using the file which was produced during the unzip) | * Run the installer shell (using the file which was produced during the unzip) | ||
<code bash> | <code bash> | ||
- | ./SenchaCmd-7.4.0.39-linux-amd64.sh | + | ./SenchaCmd-7.4.0.39-linux-amd64.sh |
+ | #This might be needed (!=== REPLACE '/home/system' with the user you are logged in as===!) | ||
+ | export PATH=$PATH:/home/system/bin/Sencha/Cmd/7.4.0.39 | ||
</code> | </code> | ||
* Depending if you are on a system with some desktop (like Xfe) or without one, the installer will ask you some questions about the install. Just select the defaults to complete the install. | * Depending if you are on a system with some desktop (like Xfe) or without one, the installer will ask you some questions about the install. Just select the defaults to complete the install. | ||
Line 64: | Line 66: | ||
sudo chown -R www-data. /var/www/html/cake3/rd_cake/webroot/files/imagecache | sudo chown -R www-data. /var/www/html/cake3/rd_cake/webroot/files/imagecache | ||
</code> | </code> | ||
+ | |||
+ | ===== Confirm everything is working ===== | ||
+ | * The following URL will display the non-optimized code | ||
+ | * http://127.0.0.1/rd_dev/#dashboard | ||
+ | * You can now modify the code and test the changes under that URL | ||
+ | * Once you are happy with all your changes its time to optimize the code | ||
+ | <code bash> | ||
+ | cd /var/www/rd_code/rd | ||
+ | sencha app build production | ||
+ | #Note there will be some JRE related warnings... thats normal | ||
+ | </code> | ||
+ | * After the build it optimised you can reach it here | ||
+ | * http://127.0.0.1/rd_dev/build/production/Rd/#dashboard | ||
+ | * -OR- | ||
+ | * http://127.0.0.1/rd | ||
+ | ===== Making your changes 'LIVE' ===== | ||
+ | * To serve these latest changes under the document root of Nginx | ||
+ | <code bash> | ||
+ | sudo cp -R /var/www/html/rd/* /var/www/html/ | ||
+ | </code> | ||
+ | |||
+ | |||